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

Can you think of a logic behind the game minesweeper.

2428


Who invented bcpl language?

1141


Where is volatile variable stored?

1043


What does %c do in c?

949


Explain indirection?

1075


What is the heap in c?

1040


Which are low level languages?

1059


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1248


What is zero based addressing?

1125


What are dangling pointers? How are dangling pointers different from memory leaks?

1251


what are the 10 different models of writing an addition program in C language?

1860


What is define directive?

1099


Whats s or c mean?

964


What is static identifier?

1184


How can I call fortran?

1000