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 ?    28 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 are pointers declared in c?

0 Answers  


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

0 Answers  


2. What does static variable mean?

2 Answers  


How many parameters should a function have?

0 Answers  


where do we use structure pointer?

1 Answers  






What is the Difference between Macro and ordinary definition?

3 Answers   Motorola, Cognizant, Bosch, College School Exams Tests,


How can I return multiple values from a function?

6 Answers  


Can two or more operators such as and be combined in a single line of program code?

0 Answers  


#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf("\n%d",j) i+=j; } }

7 Answers   HCL,


main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.

1 Answers   Cisco,


Given an array of numbers, except for one number all the others occur twice. Give an algorithm to find that number which occurs only once in the array.

6 Answers  


When should you not use a type cast?

0 Answers  






Categories