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

What is the difference between constant pointer and constant variable?

1277


number of times a digit is present in a number

2079


Can we use any name in place of argv and argc as command line arguments?

1125


how to count no of words,characters,lines in a paragraph.

4470


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

2139


What is meant by type specifiers?

1183


Why we use conio h in c?

1300


Is it possible to execute code even after the program exits the main() function?

1392


What is bss in c?

1158


What is 2c dna?

1127


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1203


Explain the bubble sort algorithm.

1113


What is omp_num_threads?

1133


What is a function in c?

1674


Discuss the function of conditional operator, size of operator and comma operator with examples.

1208