Make pattern of A to Z with star* C-Programming
How to Make a Program in C to Make Capital A with * ?
" Make a Program in C to Make Capital A with * "
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"* * *" at the top.
- For printing "* * *" we simply start a loop from y=1 to y=3 because we want to print "*" 3-times.
- Then we use else if statement for print "* * *" in the middle.
- And also for printing "* * *" we simply start a loop from y=1 to y=3 because we want to print "*" 3-times.
- And in else section we simply print "* *" because we need "*" in both side
- Then our program is completed.
No comments:
Post a Comment