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

program for following output using for loop?
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5

Answer Posted / atul shukla

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1146


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2345


What is the purpose of macro in C language?

1067


How many types of sorting are there in c?

1013


explain what is a newline escape sequence?

1043


What is scope of variable in c?

994


find out largest elemant of diagonalmatrix

2175


if p is a string contained in a string?

1797


Write a program to check palindrome number in c programming?

967


What standard functions are available to manipulate strings?

1078


application attempts to perform an operation?

1918


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1193


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

1912


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1054


write a program to display all prime numbers

1915