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
Is c language still used?
Is return a keyword in c?
Why should I use standard library functions instead of writing my own?
When the macros gets expanded?
Why doesnt the call scanf work?
What is a memory leak? How to avoid it?
What is the purpose of main( ) in c language?
What is the meaning of && in c?
What are the primitive data types in c?
Write a Program to accept different goods with the number, price and date of purchase and display them
What is the benefit of using an enum rather than a #define constant?
What is oops c?
What extern c means?
Explain c preprocessor?
How do I create a directory? How do I remove a directory (and its contents)?