Write a program to produce the following output:
1
2
3
4
5
6
7
8
9
10
Answer Posted / 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 |
Post New Answer View All Answers
Define and explain about ! Operator?
What is the difference between functions getch() and getche()?
What is scanf () in c?
Difference between constant pointer and pointer to a constant.
Is c weakly typed?
What is a null string in c?
Are enumerations really portable?
What are the advantages of external class?
What are c identifiers?
Explain the difference between call by value and call by reference in c language?
What is call by reference in functions?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What is the purpose of the statement: strcat (S2, S1)?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.