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
Explain about Garbage Collector?
What are the two shift operators and what are their functions?
Write a program to concatenate two strings.
Out of fgets() and gets() which function is safe to use?
Can we sort map in c++?
What are static type checking?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
Is it possible to provide default values while overloading a binary operator?
What is searching? Explain linear and binary search.
What are the different types of polymorphism in c++?
What is meaning of in c++?
Is c++ the best programming language?
How does c++ sort work?
What causes a runtime error c++?
Is c++ built on c?