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

Tell me a C program to display the following Output?
1 1 1 1 1
2 2 2 2
3 3 3
4 4
5

Answer Posted / deepti

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

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use namespace feature?

1065


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2442


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15821


Give me the code of in-order recursive and non-recursive.

1378


How can I manipulate individual bits?

1050


what is the diffrenet bettwen HTTP and internet protocol

1843


Why is python slower than c?

1095


Can we assign integer value to char in c?

1263


What are the 4 types of unions?

1047


What is scope rule in c?

1077


What are the different types of errors?

1147


What is conio h in c?

1050


What are the parts of c program?

1105


What does the error message "DGROUP exceeds 64K" mean?

1234


What is the default value of local and global variables in c?

1051