Write a C program to print 1 2 3 ... 100 without using
loops?

Answer Posted / vivek

void main()
{
int i=1;
if(i<=100)
printf("%d",i);
continue;
getch();
}

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a shell structure examples?

592


What are the rules for identifiers in c?

589


Where are the auto variables stored?

626


How can I split up a string into whitespace-separated fields?

572


Explain threaded binary trees?

682






How can I implement sets or arrays of bits?

608


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2579


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1745


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

1907


What is external variable in c?

614


What is self-referential structure in c programming?

661


Explain how many levels deep can include files be nested?

629


How will you write a code for accessing the length of an array without assigning it to another variable?

617


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1122


Explain void pointer?

593