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 / rajarshi bhadra

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();

for(i=5;i>=0;i--)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where are the auto variables stored?

1135


What is 2 d array in c?

1010


What is a macro in c preprocessor?

1087


What is variable initialization and why is it important?

1234


What does the c preprocessor do?

1090


Is exit(status) truly equivalent to returning the same status from main?

1054


What is use of integral promotions in c?

1129


What is a stream?

1123


Why can’t constant values be used to define an array’s initial size?

1366


Give the rules for variable declaration?

1161


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1940


how to find anagram without using string functions using only loops in c programming

3172


What are enumerated types?

1168


What is unary operator?

1094


What is default value of global variable in c?

970