Hi..

May i have codings 2 display numbers 1 to 100 without using any loop..

Otherwise without using for loop alone...

Thq

write a recursive function to print the numbers.

int i = 1;
STUPID_ASSIGNMENT:
	  printf("%d\n", i);

	  if(i < 100)
	  {
		  i++;
		  goto STUPID_ASSIGNMENT;
	  }

Is this the kind of assignment teachers like to give nowadays?

commented: Ha! +23
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.