update
This commit is contained in:
parent
867bdc0109
commit
0ef461bff3
@ -0,0 +1,34 @@
|
|||||||
|
#include<iostream>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
/*
|
||||||
|
int main(){
|
||||||
|
char CIN,COUT;
|
||||||
|
|
||||||
|
cin >> CIN;
|
||||||
|
|
||||||
|
int CIN2 = CIN+=3;
|
||||||
|
|
||||||
|
COUT = CIN2;
|
||||||
|
|
||||||
|
cout <<COUT;
|
||||||
|
return 0;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
int main(){
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
char letter;
|
||||||
|
int n = 3;
|
||||||
|
|
||||||
|
cin >>letter;
|
||||||
|
|
||||||
|
if (letter >= 'A' && letter <= 'Z') {
|
||||||
|
char new_letter = (letter - 'A' + n) % 26 + 'A';
|
||||||
|
cout << new_letter<<endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
BIN
homework_laster.exe
Normal file
BIN
homework_laster.exe
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user