Advertisement
Guest User

Untitled

a guest
May 9th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3. #include <conio.h>
  4. #include <stdlib.h>
  5. #include <stdint.h>
  6. #include <time.h>
  7. // -2 черная дамка, -1 черная шашка, 0 пустое поле, 1 белая шашка, 2 белая дамка
  8. int main() {
  9.     int desk[8][8];
  10.     for (size_t i = 0; i<8; i++)
  11.     {
  12.         for (size_t j = 0; j<8; j++)
  13.         {
  14.             printf("a[%d][%d] = ", i, j);
  15.             scanf("%d", &desk[i][j]);
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement