Created
November 4, 2018 09:52
-
-
Save feynon/c601d12b5b4163defd64db0f4835e7f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <math.h> | |
#include <stdlib.h> | |
int main() { | |
int n, i, j; | |
scanf("%d",&n); | |
for(i=0;i<n+1;i++){ | |
for(j=0;j<n+1;j++){ | |
if(j < (n+1)- i){ | |
printf(" "); | |
} | |
else{ | |
printf("#"); | |
} | |
} | |
printf("\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment