Niloy007

Aurna's Problem 1

Nov 18th, 2020
457
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.     printf("Enter how many digits :\n");
  6.     scanf("%d", &n);
  7.     int arr[n];
  8.     printf("Enter the digits :\n");
  9.     for (int i = 0; i < n; i++) {
  10.         scanf("%d", &arr[i]);
  11.     }
  12.  
  13.     printf("The number is :");
  14.     for (int i = 0; i < n; i++) {
  15.         printf("%d", arr[i]);
  16.     }
  17.     printf("\n");
  18. }
RAW Paste Data