SHARE
TWEET

Untitled

a guest Feb 21st, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <stdlib.h>
  4. int main()
  5. {
  6.     int q[5][5];
  7.     char c[5][5], k[25];
  8.     for (int i = 0; i < 5; ++i)
  9.     {
  10.         for (int j = 0; j < 5; ++j)
  11.         {
  12.             q[i][j] = rand() % 25;
  13.             printf("%d\t", q[i][j]);
  14.         }
  15.         printf("\n");
  16.     }
  17.     printf("\n");
  18.     for (int i = 0; i < 5; ++i)
  19.     {
  20.         for (int j = 0; j < 5; ++j)
  21.         {
  22.             _itoa_s(q[i][j], k, 10);
  23.             c[i][j] = *k;
  24.             printf("%c\t", c[i][j]);
  25.         }
  26.         printf("\n");
  27.     }
  28.     _getch();
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top