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

how can i get the output
54321
4321
321
21
1

in c programming........???? pls help......

Answer Posted / jayaraj.s

#include<stdio.h>
main()
{
int a,b;
for(a=5;a!=0;a--)
{
for(b=a;b!=0;b--)
{
printf("%d",b);
}
printf("\n");
}

getch();
}

Is This Answer Correct ?    87 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1059


Why is it important to memset a variable, immediately after allocating memory to it ?

2052


How can I make sure that my program is the only one accessing a file?

1251


What is a good data structure to use for storing lines of text?

1072


What is getch?

1172


What is the meaning of typedef struct in c?

1053


How do you construct an increment statement or decrement statement in C?

1213


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1048


What is a spanning Tree?

1560


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

1391


Is printf a keyword?

1187


What is union in c?

1107


Is using exit() the same as using return?

1321


What is structure in c definition?

1035


while initialization of array why we use a[][2] why not a[2][]...?

2342