Niloy007

Siam's Problem

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