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

#include<iostream.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
{
cout<<"*";
}
cout<<"\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

Is c++ a difficult language?

1098


How much do coding jobs pay?

998


What do you mean by function and operator overloading in c++?

1035


What is the difference between #define debug 0 and #undef debug?

1174


Who was the creator of c++?

1034


Can we use struct in c++?

1011


What is a block in c++?

1039


Explain shallow copy?

1033


Explain the concept of copy constructor?

1030


What does ios :: app do in c++?

1019


What is the precedence when there is a global variable and a local variable in the program with the same name?

1107


What is the best c++ ide?

1151


Which programming language should I learn first?

1081


When does a name clash occur in c++?

1153


Is rust better than c++?

1104