Skip to content

Instantly share code, notes, and snippets.

@feynon
Created November 4, 2018 09:52
Show Gist options
  • Save feynon/c601d12b5b4163defd64db0f4835e7f1 to your computer and use it in GitHub Desktop.
Save feynon/c601d12b5b4163defd64db0f4835e7f1 to your computer and use it in GitHub Desktop.
#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