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 / devi

#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 ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1181


What is the use of #define preprocessor in c?

1056


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2629


What are logical errors and how does it differ from syntax errors?

1283


swap 2 numbers without using third variable?

1115


What are the advantages and disadvantages of pointers?

1058


What is function prototype?

1116


Can main () be called recursively?

1103


In C programming, what command or code can be used to determine if a number of odd or even?

1038


Is int a keyword in c?

954


Tell me about low level programming languages.

1107


What is the difference between array and pointer in c?

1138


How do I get an accurate error status return from system on ms-dos?

1104


What are all different types of pointers in c?

1001


Is a house a mass structure?

1081