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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

5166


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

1725


Mention four important string handling functions in c languages .

615


Why should I prototype a function?

626


What is printf () in c?

572






Is there a way to jump out of a function or functions?

625


What are the disadvantages of external storage class?

579


How would you rename a function in C?

608


What are the advantages and disadvantages of pointers?

565


Differentiate between a structure and a union.

752


What's the right way to use errno?

611


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

734


What kind of structure is a house?

546


What does *p++ do?

576


What is the purpose of the statement: strcat (S2, S1)?

634