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++ programming using for loop:
*
* *
* * *
* * * *

Answer Posted / ashutosh garg

for(i=1 i<=5; i++){
for(j=1;j<=i;j++){
cout("*");
}//inner-for
cout("\n");
}//outer-for

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between map and hashmap in c++?

1062


What do you mean by function overriding & function overloading in c++?

1126


What is the oldest programming language?

965


Can we define a constructor as virtual in c++?

1096


What is a loop? What are different types of loops in c++?

1085


What size is allocated to the union variable?

1023


In c++, what is the difference between method overloading and method overriding?

1093


Define linked lists with the help of an example.

998


To what does “event-driven” refer?

1023


Write a program to find the Factorial of a number

1028


Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---

2070


Does c++ have finally?

984


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1065


How is modularity introduced in C++?

1172


When is the destructor called?

995