Write a program to produce the following output:
1
2
3
4
5
6
7
8
9
10
Answer Posted / alish agrwal
#include<stdio.h>
#include<conio.h>
void main()
{ int i;
for(i=1;i<=10;i++)
printf("\n",i);
getch();
}
| Is This Answer Correct ? | 29 Yes | 14 No |
Post New Answer View All Answers
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What does p mean in physics?
Write a program to find factorial of a number using recursive function.
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
Why c is called procedure oriented language?
What does s c mean in text?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
Why use int main instead of void main?
Why functions are used in c?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
What functions are used in dynamic memory allocation in c?
What is difference between scanf and gets?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }