write a C++ programming using for loop:
*
* *
* * *
* * * *
Answer Posted / ashutosh garg
for(i=1 i<=5; i++){
for(j=1;j<=i;j++){
cout("*");
}//inner-for
cout("\n");
}//outer-for
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
What is the difference between map and hashmap in c++?
What do you mean by function overriding & function overloading in c++?
What is the oldest programming language?
Can we define a constructor as virtual in c++?
What is a loop? What are different types of loops in c++?
What size is allocated to the union variable?
In c++, what is the difference between method overloading and method overriding?
Define linked lists with the help of an example.
To what does “event-driven” refer?
Write a program to find the Factorial of a number
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
Does c++ have finally?
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
How is modularity introduced in C++?
When is the destructor called?