Advertisement
MateuszGgG

zad 5 a rev0

Dec 5th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <Windows.h>
  3. #include <string.h>
  4. #include <stdlib.h>
  5. #include<locale.h>
  6.  
  7. #define DLUGOSC 3
  8. int i;
  9. long ss[3];
  10. int main (void)
  11. {
  12.     setlocale(LC_ALL,"polish");
  13.     printf("Proszę wprowadzić 3 liczby całkowite typu long\n");
  14.    
  15.     for (i = 0; i < 3; ++i) {
  16.         printf("Wprowadź daną nr %d \n", i + 1);
  17.         scanf_s("%l", ss[i], (unsigned)_countof(ss));
  18.  
  19.         }
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement