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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the code in while loop that returns the output of given code?

1269


What is the difference between text files and binary files?

661


What is %s and %d in c?

574


What is a substring in c?

574


shorting algorithmS

1784






What is define c?

561


Why is c called "mother" language?

845


How can I ensure that integer arithmetic doesnt overflow?

596


Why is c known as a mother language?

728


In a byte, what is the maximum decimal number that you can accommodate?

613


Do you know null pointer?

594


What is double pointer?

546


What are the loops in c?

583


What is the benefit of using #define to declare a constant?

593


Can we use visual studio for c?

534