Hi..
May i have codings 2 display numbers 1 to 100 without using any loop..
Otherwise without using for loop alone...
Thq
Jump to Postint 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?
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?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.