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 / jayaraj.s

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is main an identifier in c?

1092


Which built-in library function can be used to match a patter from the string?

1244


What does the error 'Null Pointer Assignment' mean and what causes this error?

1164


Do pointers take up memory?

1088


What does *p++ do? What does it point to?

1007


find the sum of two matrices and WAP for it.

1071


What is main function in c?

1021


What is quick sort in c?

1025


#include { printf("Hello"); } how compile time affects when we add additional header file .

1857


What is difference between main and void main?

1121


Write a program for Overriding.

1123


What math functions are available for integers? For floating point?

1083


Can we add pointers together?

1002


What is c variable?

1002


write a proram to reverse the string using switch case?

2888