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 / debotri das

#include<iostream.h>
#include<conio.h>

void main()
{
clrscr();
int line,n,i;
cout<<"Enter no of line\n";
cin>>n;
for(line=1;line<=n;line++)
{
for(i=1;i<=line;i++)
{
cout<<" * ";
}
cout<<" \n ";
}
getch();
}

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between structures and unions?

1054


How to declare a function pointer?

990


What is the use of class in c++?

1069


What is format for defining a structure?

1069


Is ca high or low level language?

1072


Out of fgets() and gets() which function is safe to use?

1121


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

1117


Explain about Garbage Collector?

1109


Explain about vectors in c ++?

1014


what does the following statement mean? int (*a)[4]

1070


What is the extraction operator and what does it do?

1079


What are the advantages of using const reference arguments in a function?

1062


What is array in c++ pdf?

1166


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2306


Explain explicit container.

1076