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
What is a set in c++?
What are the various situations where a copy constructor is invoked?
When should overload new operator on a global basis or a class basis?
What are guid?
What is general form of pure virtual function? Explain?
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
What is c++ namespace?
How is c++ different from java?
What character terminates all character array strings a) b) . c) END
What should main() return in c and c++?
Write a struct time where integer m, h, s are its members?
What is DlgProc?
Tell me can a pure virtual function have an implementation?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
Why do we use the using declaration?