Niloy007

Sakib's Problem 1

Dec 11th, 2020
313
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     int n;
  5.     scanf("%d", &n);
  6.     int count = 1;
  7.     for (int i = 0; i < n; i++) {
  8.         for (int j = i; j < n; j++) {
  9.             printf(" ");
  10.         }
  11.         for (int j = 0; j < count; j++) {
  12.             printf("*");
  13.         }
  14.         count += 2;
  15.         printf("\n");
  16.     }
  17. }
  18.  
RAW Paste Data