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

What is meant by iomanip in c++?

1212


What is a memory leak c++?

1133


Does a derived class inherit or doesn't inherit?

1086


What is called array?

1079


How long does it take to get good at leetcode?

1169


Difference between pointer to constant and constant pointer to a constant. Give example.

1114


What is a Default constructor?

1586


What is ofstream c++?

1085


What is the arrow operator in c++?

1016


What are the characteristics of friend functions?

1011


Is empty stack c++?

990


What does return 0 do in c++?

1035


What are advantages of using friend classes?

1072


Explain the isa and hasa class relationships.

1036


Describe protected access specifiers?

1217