Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- //
- // ®€""
- // ŧŧ oOOOOOo“
- // !¢¢ OOOOOOOOOOo««
- // My first programm @@@LOOOOOOOO“”~µµµ
- // As Mario_Half_Pyramid, in Pset1 ŧŧ ©ªªª©© OOOOOOORRTđðª/ @@
- // in Language-C \@@ ## IL TGTGGHTH
- // @@@/ #### TTgTTG“”/ _________
- // by Richard Paul Oliver IL ###### ŧŧŧŧŧ©¢» | CHECK |
- // Richie ################### DR. ©© ””””||”””
- // MARIO ©©©© ||
- // Presents ŧŧ←←←←←←←←~~~~~~~““
- #include<stdio.h>
- #include<cs50.h>
- int main(void)
- {
- int height;
- do
- {
- // This Prints the Question out towards the User //
- printf("Complete your Pyramid with a positive integer between 0 and 23:\n");
- // This gathers the Information needed for within the Programs understandmet //
- height = GetInt();
- }
- // Obtains Users Input , Checks the condition if met Repeats, if Not Terminates Loop!!
- while((height < 0) || (height > 23));
- // This intiates the for Loop //
- for(int i = 1; i <= height; i++)
- // It Prints the correct spaces given within each line, //
- // continuously udating untill the given height is reached..//
- for(int j = height - i; j > 0; j--)
- {
- printf(" ");
- }
- // Prints the given upper 2 hashes and continuously //
- // Updates untill amount reached for User.. //
- for(int k = 0; k <= i; k++)
- GetInt();
- {
- printf("#");
- // Prints a New_Line, after each set of Hash & Space is situated //
- printf("\n");
- }
- // Thanks the User for the correct Input //
- printf("Thankyou for Playing Mario's Pyramid\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement