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 a set in c++?

928


What are the various situations where a copy constructor is invoked?

1087


When should overload new operator on a global basis or a class basis?

1045


What are guid?

1198


What is general form of pure virtual function? Explain?

958


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

2317


What is c++ namespace?

1164


How is c++ different from java?

1009


What character terminates all character array strings a) b) . c) END

1227


What should main() return in c and c++?

992


Write a struct time where integer m, h, s are its members?

932


What is DlgProc?

984


Tell me can a pure virtual function have an implementation?

986


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

964


Why do we use the using declaration?

1135