write a c++ program which displays an inverted triangle using nested for loop and asterisk character
Use any Compiler IDE you want.
Required Output should be look like below image.
Compiler used: CodeBlocks c++ Compiler
c++ code:
sample output
These kinds of programs are basic level program can be coded in more than one way it is recommended to change the logic of program and do experiment with the code for better understanding
More C++ Shapes Here
Use any Compiler IDE you want.
Required Output should be look like below image.
Compiler used: CodeBlocks c++ Compiler
c++ code:
#include<iostream>
|
sample output
These kinds of programs are basic level program can be coded in more than one way it is recommended to change the logic of program and do experiment with the code for better understanding
More C++ Shapes Here
what should i do when i have to make it user based....like user have to give a number then the output will show accordingly to the given number
ReplyDeleteCan u plz upload the same type of ques in c coding like using printf and all instead of cout
ReplyDelete