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

write a c++ program that gives output
4
3 4
2 3 4
1 2 3 4 using looping statement

Answer Posted / rajesh

4
3 4
2 3 4
1 2 3 4

#include<stdio.h>

int main()
{
int i, j, n=4;

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

Is This Answer Correct ?    32 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why cstdlib is used in c++?

1098


When we use Abstract Class and when we use Interface?where we will implement in real time?

2242


Does improper inheritance have a potential to wreck a project?

1217


What are vectors used for in c++?

1142


Do you know what is overriding?

1298


What is struct c++?

1054


What are friend classes? What are advantages of using friend classes?

1139


What are register variables?

1216


What programming language should I learn first?

1153


What is the difference between a template and a macro?

1116


What is the latest version on c++?

1183


What is a namespace in c++?

2143


how to explain our contribution in the project?

3757


What is the difference between *p++ and (*p)++ ?

1414


State the difference between pre and post increment/decrement operations.

1151