write a program to display numbers from 1 to 10 and 10 to 1?
Answers were Sorted based on User's Feedback
Answer / sai
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
clrscr();
for(i=1;i<=10;i++)
printf(" %d",i);
printf("\n");
for(i=10;i>=1;i--)
printf(" %d",i);
getch();
}
/* output
1 2 3 4 5 6 7 8 9 10
10 9 8 7 6 5 4 3 2 1 */
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / 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 |
write a program to print sum of each row of a 2D array.
why little endian and big endian came?y they using differently? y they not used commonly ?wt is application of little and big ?
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
why wipro wase
What is a far pointer in c?
how to add our own function in c library please give details.?
How is a pointer variable declared?
Is reference used in C?
which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;
where does it flourished?
What is the explanation for prototype function in c?
Why should I prototype a function?