Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(void){
- int n, noOfRows, i, spaces, noOfSpaces, hashes;
- noOfRows = 8;
- noOfSpaces = noOfRows-1;
- do{
- n=get_int("Give Mario an Integer : ");
- }
- while(n<0 || n>23);
- for(i=1; i<noOfRows; i++){
- for(spaces=0; spaces<=noOfSpaces; spaces++){
- printf(" ");
- }
- noOfSpaces--;
- for(hashes=0;hashes<=i;hashes++){
- printf("#");
- }
- printf("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement