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
Tell us bitwise shift operators?
What is d scanf?
Are c and c++ the same?
What is structure in c explain with example?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
How can a process change an environment variable in its caller?
What are multibyte characters?
What is union and structure?
What is the difference between mpi and openmp?
How can you tell whether a program was compiled using c versus c++?
what type of questions arrive in interview over c programming?
What are the properties of union in c?
What are header files why are they important?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Who invented bcpl language?