Files
ClassFeedback/C++代码/GESP考级/二级/202609字符变换.cpp

24 lines
332 B
C++

#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int a, b, c;
int main(){
cin >> a >> b >> c;
int cnt = 0;
for(int i = 1; i <= 8; i++){
for(int j = 1 ;j <= 16; j++){
cnt++;
if(cnt == a || cnt == b || cnt == c){
cout << (char)cnt;
}else {
cout << '*';
}
}
cout << endl;
}
return 0;
}