write a C++ programming using for loop:
*
* *
* * *
* * * *
Answer Posted / amit
void main()
{
int i,j;
for(i=1;i<=4;i++)
{
for(j=1;j<=1;j++)
cout<<"*"
cout<<endl;
}
getch();
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What's the most powerful programming language?
What does catch(…) mean?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
What is class and structure in c++?
What is lambda expression c++?
What is extern c++?
Are there any special rules about inlining?
Write a program in C++ for Fibonacci series
Write syntax to define friend functions in C++.
Differentiate between late binding and early binding. What are the advantages of early binding?
Describe private, protected and public – the differences and give examples.
Describe the advantages of operator overloading?
What are the five basic elements of a c++ program?
Explain the static storage classes in c++.
Is set c++?