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


Please Help Members By Posting Answers For Below Questions

Explain the properties of union.

609


hi, which software companys will take,if d candidate's % is jst 55%?

1663


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

5056


What is the use of extern in c?

647


What happens if a header file is included twice?

596






What is the use of ?: Operator?

666


Explain what are the different file extensions involved when programming in c?

633


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2699


Which is an example of a structural homology?

785


What is the purpose of sprintf() function?

602


Write a program to swap two numbers without using a temporary variable?

609


What are called c variables?

574


what is recursion in C

616


Is null valid for pointers to functions?

613


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

626