program in c to print 1 to 100 without using loop
Answer Posted / ashu
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int a;
clrscr();
printf("there are 1 to 100");
a=0;
if(a<100)
{
a++;
printf("%d\n",a);
}
else if(a>100)
{
goto end;
}
end: getch();
}
| Is This Answer Correct ? | 5 Yes | 13 No |
Post New Answer View All Answers
Write a program to check whether a number is prime or not using c?
What is the meaning of && in c?
Does c have class?
When is a “switch” statement preferable over an “if” statement?
what is a function method?give example?
What is cohesion in c?
What is C language ?
What is the difference between printf and scanf in c?
What is wrong with this code?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
How to Throw some light on the splay trees?
Explain what is the difference between a free-standing and a hosted environment?
Can you write the function prototype, definition and mention the other requirements.
How macro execution is faster than function ?
What is the use of extern in c?