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 is context in c?
How can I get the current date or time of day in a c program?
Write a program to print factorial of given number using recursion?
Difference between pass by reference and pass by value?
Can math operations be performed on a void pointer?
What is optimization in c?
Write a progarm to find the length of string using switch case?
What is %d called in c?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What does the error 'Null Pointer Assignment' mean and what causes this error?
how could explain about job profile
How can I find out how much free space is available on disk?
Are comments included during the compilation stage and placed in the EXE file as well?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What is the code for 3 questions and answer check in VisualBasic.Net?