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
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Explain rethrowing exceptions with an example?
How to access a variable of the structure?
What is a buffer c++?
Can I make ios apps with c++?
What is meaning of in c++?
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
What is const in c++?
What is the operator in c++?
Do you know the problem with overriding functions?
What is class syntax c++?
Where can I run c++ program?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
What is the extraction operator and what does it do?
What is the best c++ compiler for windows 10?