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



Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10..

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

Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10..

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

Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10..

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

Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10..

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

Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10..

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

Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10..

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

Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10..

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

Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10..

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

Post New Answer

More C Interview Questions

how to print value of e(exp1)up to required no of digits after decimal?

1 Answers  


Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);

5 Answers  


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

0 Answers   IBM, Wipro,


Find the output? void main() {float a=2.0; printf("\nSize of a ::%d",sizeof(a)); printf("\nSize of 2.0 ::%d",sizeof(2.0));}

11 Answers   IBM, TCS,


How can you avoid including a header more than once?

0 Answers  






what is the role you expect in software industry?

0 Answers   HCL,


What is the o/p of the follow pgm? #include<stdio.h> main() { char char_arr[5]=”ORACL”; char c=’E’; prinf(“%s\n”,strcat(char_arr,c)); } a:oracle b. oracl c.e d.none

2 Answers   Oracle,


what is the difference between declaration ,defenetion and initialization of a variable?

7 Answers   LG Soft,


WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary display all contents?

6 Answers   Finite Infotech, Lovely Professional University, Wipro,


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

0 Answers  


Is double link list a linear data structure? If Yes, Why?If No, Why?

4 Answers  


How to write the code of the program to swap two numbers with in one statement?

2 Answers  


Categories