write a C++ programming using for loop:
*
* *
* * *
* * * *
Answer Posted / debotri das
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int line,n,i;
cout<<"Enter no of line\n";
cin>>n;
for(line=1;line<=n;line++)
{
for(i=1;i<=line;i++)
{
cout<<" * ";
}
cout<<" \n ";
}
getch();
}
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Describe exception handling concept with an example?
Is c++ a good beginners programming language?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
what is data encapsulation in C++?
What is jump statement in C++?
What is namespace & why it is used in c++?
When are exception objects created?
Who created c++?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
What is the full name of logo?
What is vector string in c++?
What is a Default constructor?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
What are associate containers?
Is c++ an integer?