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
What are the standard predefined macros?
How do you use a 'Local Block'?
What is meant by keywords in c?
What is the difference between struct and union in C?
Is it better to use a macro or a function?
What is bin sh c?
What is the difference between the local variable and global variable in c?
What is the use of gets and puts?
Do string constants represent numerical values?
Does c have an equivalent to pascals with statement?
What is sizeof int?
Explain what are the __date__ and __time__ preprocessor commands?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
What are the two types of functions in c?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1