Make pattern of A to Z with star* C-Programming
How to Make a Program in C to Make Capital "D" with star * ?
" Make a Program in C to Make Capital D with star * "
Steps of programming:-
- Initialize two variable (e.g: int x,y;)
- Start a loop from x=1 to x=7.
- In this loop first we use if statement for print "*"s at the top.
- For printing "*"s we simply start a loop from y=1 to y=4 because we want to print "*" 4-times.
- Then we use else if statement for print "* * *" in the last.
- And also for printing "* * *" we simply start a loop from y=1 to y=4 because we want to print "*" 4-times.
- And in else section we simply print "*" because we need "* *" in both side
- Then our program is completed.
No comments:
Post a Comment