Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include<locale.h>
- #include<string.h>
- /////////////////////////////////////////////
- int main()
- {
- char c1 = 1, c2 = 2, c3 = 3;
- int rezault;
- setlocale(0, "rus");
- printf("Введите первое число: "); scanf("%s", &c1);
- printf("c1 = %c\n", c1);
- printf("Введите второе число: "); scanf("%s", &c2);
- printf("c2 = %c\n", c2);
- printf("Введите третье число: "); scanf("%s", &c3);
- printf("c3 = %c\n", c3);
- rezault = c1 + c2 + c3;
- printf("%d", rezault);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement