program in c to print 1 to 100 without using loop

Answer Posted / nishikant kamble

#include<stdio.h>
int main()
{
int i=1;
suhas:
printf("%d\t",i);
i++;
if(i==101)
{
exit(1);
}
goto suhas;
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c is called object oriented language?

592


What does a function declared as pascal do differently?

609


What are the differences between new and malloc in C?

612


how can f be used for both float and double arguments in printf? Are not they different types?

612


praagnovation

1780






Why we use void main in c?

599


What is echo in c programming?

561


Not all reserved words are written in lowercase. TRUE or FALSE?

723


How can you check to see whether a symbol is defined?

596


How can I prevent another program from modifying part of a file that I am modifying?

618


console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above

661


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

1590


What is array of structure in c?

603


What is break statement?

636


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

661