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

#include<stdio.h>
void main(){
int i,j=5,temp=0;
for (i=1;i<=5;i++)
{
for (j=5-temp;j>=1;j--)
{
printf("%d",j);
}
printf("
");
temp=temp+1;
}
}

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are pointers integer?

959


What is the difference between union and structure in c?

1084


How many loops are there in c?

1047


When should we use pointers in a c program?

1081


Which function in C can be used to append a string to another string?

1177


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1075


When we use void main and int main?

1018


Explain about the constants which help in debugging?

1310


What is uint8 in c?

1055


Are enumerations really portable?

978


write a c program to find the sum of five entered numbers using an array named number

2076


Is it acceptable to declare/define a variable in a c header?

1060


What is the difference between abs() and fabs() functions?

1060


What is the most efficient way to count the number of bits which are set in an integer?

1001


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

1038