Write a program to produce the following output:
1
2
3
4
5
6
7
8
9
10
Answers were Sorted based on User's Feedback
Answer / bilal
guys how about the question write a program toprint
1
2 3
4 5 6
Is This Answer Correct ? | 26 Yes | 3 No |
Answer / 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 |
Answer / sagarraje nimbalkar
// using If else
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1;
while(i<=10)
{
printf("\n%d",i);
i++;
}
}
Is This Answer Correct ? | 13 Yes | 4 No |
Answer / jjh
0
1 0 1
2 1 0 1 2
3 2 1 0 1 2 3
4 3 2 1 0 1 2 3 4
5 4 3 2 1 0 1 2 3 4 5
Is This Answer Correct ? | 8 Yes | 6 No |
Answer / nazar hussain khan
#include"stdio.h"
#include"conio.h"
void main(void)
{
clrscr();
int a,
for(i=1;i<=10;i++)
{
printf("%d",i);
}
printf("\n");
getch();
}
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / guest
#include<stdioh>
#include<conio.h>
void main()
{
int i;
for(i=0;i<=10;i++)
{
printf("%d",i);
}
}
Is This Answer Correct ? | 8 Yes | 14 No |
Answer / munna
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
for(i=0;i<=10;i++)
{
printf("the required numbers are:%d",i);
}
getch();
}
Is This Answer Correct ? | 3 Yes | 9 No |
Answer / kelly baby
Hello dear new friend,
my name is Kelly i read your profile and i decided to
contact you hopping that you will accept me as your friend,
please if you accept my request reply my true my email
address (kellybaby004@yahoo.in) so that i will send you my
picture and tell you more about me, do not late far
decadence be a barrier let love cornet because love is
abridge cornet far decadence to be lose.
yours kelly
Is This Answer Correct ? | 5 Yes | 14 No |
`write a program to display the recomended action depends on a color of trafic light using nested if statments
How can a program be made to print the name of a source file where an error occurs?
What are different types of variables in c?
write a program to display the numbers in the following format 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3 4
how to print "hai" in c?
what is the difference between while and do while?
progrem to generate the following series 1 12 123 1234 12345
What is the Difference between Class and Struct?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
Why do we use & in c?
Explain what is output redirection?