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

12344321
123 321
12 21
1 1 how i print this program??

Answer Posted / vamsi talapatra

#include<iostream>
using namespace std;
int main(){
int n = 4;
while(n>0){
for(int i = 1; i<=n; i++){
cout<<i;
}
cout<<" ";
for(int i = n; i>0; i--){
cout<<i;
}
n--;
cout<<endl;
}
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the keywords in c?

1177


What are the 32 keywords in c?

1140


What are the advantages of Macro over function?

2098


Explain what is meant by 'bit masking'?

1270


What is a null pointer in c?

1315


How many types of operators are there in c?

1088


What is the purpose of void pointer?

1102


what is the structure pointer?

2180


Explain indirection?

1184


What is data structure in c programming?

1132


Is that possible to add pointers to each other?

1429


What is exit() function?

1075


What is a loop?

1113


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2142


Why can't I perform arithmetic on a void* pointer?

1161