Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. #include <stdlib.h>
  4.  
  5. int main() {
  6.     int A[30];
  7.     int account = 0;
  8.     for (int i = 0; i < 30; i++) {
  9.         printf("Введите число в массив: "); scanf_s("%d", &A[i]);
  10.         if (A[i][j] >= -10 && A[i][j] <= 10) {
  11.             account++;
  12.         }
  13.     }
  14.     printf("Кол-во: %d", account);
  15.  
  16.     system("pause");
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement