Di Posting Oleh : Simple Learning
Kategori : diamond for hollow input loop size user using
write a c++ program which takes size of diamond and display hollow diamond using nested for loop and asterisk character.
Output should be look like bellow
User can enter its desired size of diamond either even or odd
For Example
If user enters size of 3
3 lines of will be formed above middle and 3 lines will be formed below middle line
Concept used:
c++ code:
If user enter size equal to 10
Recommended: Dry run the code line by line it will help to understand quickly and also clear the working of nested for loop.
More C++ Shapes Here
Output should be look like bellow
User can enter its desired size of diamond either even or odd
For Example
If user enters size of 3
3 lines of will be formed above middle and 3 lines will be formed below middle line
Concept used:
c++ code:
#include<iostream> |
If user enter size equal to 10
More C++ Shapes Here
0 Response to "hollow diamond using for loop c++ code user enter input size of diamond"
Post a Comment