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
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
What does volatile do?
What are the three constants used in c?
Why do we use & in c?
Why do we need arrays in c?
How macro execution is faster than function ?
Explain how do you generate random numbers in c?
Process by which one bit pattern in to another by bit wise operation is?
What is pointers in c?
What is malloc calloc and realloc in c?
Explain what are run-time errors?
Differentiate between a for loop and a while loop? What are it uses?
What is the purpose of ftell?
What is return in c programming?
How can you find out how much memory is available?