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
What is object file? How can you access object file?
What is class in c++ with example?
How do you flush a buffer in c++?
Write about the retrieval of n number of objects during the process of delete[]p?
Can char be a number c++?
How does com provide language transparency?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
How are virtual functions implemented in c++?
What is the best c++ ide?
Can we overload operator in c++?
Why is "using namespace std;" considered bad practice?
Is there any difference between int [] a and int a [] in c++?
How many types of comments are there in c++?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
How do you differentiate between overloading the prefix and postfix increments?