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...

program to print this triangle
*
* *
* * *

Answer Posted / rajesh

#include<stdio.h>
main()
{
int i,j;
for(i=1;i<=3;i++)
{
for(j=1;j<=i;j++)
printf(""+"*",i,j);
}
}

Is This Answer Correct ?    8 Yes 58 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object file? How can you access object file?

1207


What is class in c++ with example?

1267


How do you flush a buffer in c++?

1098


Write about the retrieval of n number of objects during the process of delete[]p?

1021


Can char be a number c++?

1040


How does com provide language transparency?

1010


Which bit wise operator is suitable for checking whether a particular bit is on or off?

1029


How are virtual functions implemented in c++?

1067


What is the best c++ ide?

1171


Can we overload operator in c++?

1036


Why is "using namespace std;" considered bad practice?

1097


Is there any difference between int [] a and int a [] in c++?

1017


How many types of comments are there in c++?

989


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

996


How do you differentiate between overloading the prefix and postfix increments?

1095