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 4 types of organizational structures?
What is a program flowchart?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
Define VARIABLE?
How to get string length of given string in c?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
Can you assign a different address to an array tag?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
How many keywords are there in c?
Explain low-order bytes.
Does * p ++ increment p or what it points to?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
What are the advantages and disadvantages of c language?
What are different storage class specifiers in c?
How can you draw circles in C?