Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / mwolo fabrice
#include<stdio.h>
#include<conio.h>
void main()
{
int n=100,i;
scanf("%d",&i);
if(i<n)
{
printf("\n %d\n",i);
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is define c?
Differentiate between the = symbol and == symbol?
Why main is not a keyword in c?
Why is c known as a mother language?
How pointers are declared?
a c code by using memory allocation for add ,multiply of sprase matrixes
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What is the function of volatile in c language?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What is a void pointer in c?
What is c programming structure?
formula to convert 2500mmh2o into m3/hr
What are identifiers and keywords in c?
can anyone suggest some site name..where i can get some good data structure puzzles???
How is a null pointer different from a dangling pointer?