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