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

Explain about Garbage Collector?

1068


What are the two shift operators and what are their functions?

1045


Write a program to concatenate two strings.

1044


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

1084


Can we sort map in c++?

973


What are static type checking?

1014


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1027


Is it possible to provide default values while overloading a binary operator?

1224


What is searching? Explain linear and binary search.

957


What are the different types of polymorphism in c++?

1079


What is meaning of in c++?

1163


Is c++ the best programming language?

978


How does c++ sort work?

933


What causes a runtime error c++?

1086


Is c++ built on c?

975