chore: add digitSwap program

main
CrimsonTome 2023-02-06 12:54:19 +00:00 committed by Rowan Clark
parent e589d99709
commit 395d187d2a
No known key found for this signature in database
GPG Key ID: F620D51904044094
1 changed files with 10 additions and 0 deletions

10
digitSwap/main.cpp Normal file
View File

@ -0,0 +1,10 @@
#include <iostream>
#include <string>
using namespace std;
int main(){
string code = "";
cin >> code;
cout << code.substr(1,1) << code.substr(0,1) << endl;
return 0;
}