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

Write some differences between an external iterator and an internal iterator?

970


Explain container class.

1184


What is function overloading in C++?

1344


What is the difference between delegation and implemented-in-terms-of?

958


Explain what you mean by a pointer.

1053


What is a local variable?

1035


What are punctuators in c++?

1088


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

1964


Can we use pointers in c++?

1002


When do we run a shell in the unix system?

1019


What is a stack c++?

954


What is virtual function? Explain with an example

1033


Explain rtti.

1024


Differentiate between C and C++.

1172


What is the importance of mutable keyword?

986