Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / vivek
#include<stdio>
void main()
{
int i=1;
if(i<=100)
printf("%d",i);
i++;
continue;
getch;
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How to implement a packet in C
Simplify the program segment if X = B then C ← true else C ← false
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
what is the structure pointer?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Compare interpreters and compilers.
Explain how can I convert a number to a string?
What is a header file?
What is realloc in c?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
Is printf a keyword?
What are the various types of control structures in programming?
What are categories used for in c?
Can you define which header file to include at compile time?
How can you tell whether a program was compiled using c versus c++?