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
Why pointers are used?
Why do we use main function?
Write a Program to accept different goods with the number, price and date of purchase and display them
What is the use of linkage in c language?
What functions are used in dynamic memory allocation in c?
Simplify the program segment if X = B then C ← true else C ← false
What is bss in c?
Is file a keyword in c?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
Why is main function so important?
How do we make a global variable accessible across files? Explain the extern keyword?
What is a built-in function in C?
What are the 4 types of functions?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
What are the various types of control structures in programming?