Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int n, j, comp = 1;
- scanf("%d", &n);
- for (; 0 < n;){
- j= n - 1;
- for (; j > 0; j--){
- printf(" ");
- }
- for (j = 0; j < comp; j++){
- printf("*");
- }
- comp = comp + 2;
- n--;
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement