+1
+1
-1

How to write user code for running a loop for 30000 times

I want to run a loop for 30000 times.
How Can I write user code of that?

int i =1
for(i=1;i<=30000;i++)
{
Print i
}

Posting in: 

3 Answers:

+1
+1
-1

Since user code accepts normal C and C++ syntax you could write a simple for loop

for(int iterator = 0; iterator < 30000; ++iterator)
{
/*DO STUFF*/
}

What...

+1
0
-1

Thanks jpanek , user code is working now.

I want to run 5 minutes delay for a testcase and want to check with User code it will minimize some time or not.