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
What are the benefits of c++?
Explain shallow copy?
What is #include iomanip?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
How can we check whether the contents of two structure variables are same or not?
What is void pointer in c++ with example?
How do you flush a buffer in c++?
Why are arrays usually processed with for loop?
What is general format for a prototype?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
Is c++ an integer?
How is objective c different from c++?
Define vptr.
What is atoi in c++?
Why cout is used in c++?