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 the best free c++ compiler for windows?
Why Pointers are not used in C++?
What are the uses of c++ in the real world?
How does code-bloating occur in c++?
What is a buffer c++?
How to declare a pointer to an array of integers?
What is c++ map?
Write a program to interchange 2 variables without using the third one.
Comment on assignment operator in c++.
What is atoi?
Why should we use null or zero in a program?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
Can static member variables be private?
Explain explicit container.
What is the difference between a declaration and a definition?