my work 10 include stdio include conio include iostream void main setl

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
// my work 5.10
#include <stdio.h>
#include <conio.h>
#include <iostream>
void main()
{
setlocale(0, "Russian");
char a,b;
printf("%s", "Введите первую букву:\n");
scanf("%с%с", &a, &b);
system("cls");
int d = int(b);
int c = int(a);
if (c == d + 1) printf("%s","По алфавиту");
else if (c == d - 1) printf("%s","По алфавиту");
else if (c == d) printf("%s","Равны");
else printf("%s","Не по алфавиту и не равны :c, фигово");
getch();
}