Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program to display numbers from 1 to 10 and 10 to 1?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of clrscr () printf () and getch ()?

1038


Write a program of advanced Fibonacci series.

1113


What is volatile c?

975


What is the need of structure in c?

1069


Write a program to print “hello world” without using semicolon?

1091


Why do we use static in c?

1087


What do you mean by dynamic memory allocation in c?

1068


What is data structure in c programming?

1046


How to delete a node from linked list w/o using collectons?

2741


Why do we use c for the speed of light?

1128


What is new line escape sequence?

1285


By using C language input a date into it and if it is right?

1042


how many key words availabel in c a) 28 b) 31 c) 32

1028


How can you return multiple values from a function?

1075


Here is a neat trick for checking whether two strings are equal

988