Advertisement
dllbridge

Untitled

Mar 5th, 2025
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.58 KB | None | 0 0
  1. #include <stdio.h>
  2. #include<locale.h>
  3. #include<string.h>
  4.  
  5. /////////////////////////////////////////////
  6. int main()
  7. {
  8.    
  9.    
  10.     char c1 = 1, c2 = 2, c3 = 3;
  11.     int rezault;
  12.    
  13.     setlocale(0, "rus");
  14.    
  15.     printf("Введите первое число: "); scanf("%s", &c1);
  16.     printf("c1 = %c\n", c1);
  17.     printf("Введите второе число: "); scanf("%s", &c2);
  18.     printf("c2 = %c\n", c2);
  19.     printf("Введите третье число: "); scanf("%s", &c3);
  20.     printf("c3 = %c\n", c3);
  21.    
  22.    
  23.    
  24.              
  25.     rezault = c1 + c2 + c3;
  26.  
  27.     printf("%d", rezault);
  28. }
  29.  
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement