write a program to display numbers from 1 to 10 and 10 to 1?
Answer Posted / sureshmca
#include<stdio.h>
void main()
{
int num,i;
for(num=0;num<=10;num++)
{
printf("%d",num);
}
}
| Is This Answer Correct ? | 3 Yes | 9 No |
Post New Answer View All Answers
What is the difference between constant pointer and constant variable?
number of times a digit is present in a number
Can we use any name in place of argv and argc as command line arguments?
how to count no of words,characters,lines in a paragraph.
hi, which software companys will take,if d candidate's % is jst 55%?
What is meant by type specifiers?
Why we use conio h in c?
Is it possible to execute code even after the program exits the main() function?
What is bss in c?
What is 2c dna?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Explain the bubble sort algorithm.
What is omp_num_threads?
What is a function in c?
Discuss the function of conditional operator, size of operator and comma operator with examples.