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

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,n;
clrscr();
scanf("%d",&n);
for(i=n;i>=1;i--)
{
for(j=i;j>=1;j--)
{
printf("%d",j);
}
printf("\n");
}
getch();
}

Is This Answer Correct ?    29 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the c preprocessor do?

1116


How does normalization of huge pointer works?

1180


what is the significance of static storage class specifier?

2265


What are the benefits of organizational structure?

1031


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1397


What is file in c language?

1010


How can you find out how much memory is available?

1073


Write a program to implement queue.

1131


Differentiate between a for loop and a while loop? What are it uses?

1192


What are the uses of null pointers?

1130


How do we declare variables in c?

1074


What is the use of volatile?

1089


What does the file stdio.h contain?

1073


Why doesnt that code work?

1189


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

1105