#include<iostream>
#include<iomanip>
using namespace std;
char secretCode(int);
void printSequence(int);
int main(){
int number[10];
for (int index=0; index <10; index++){
cin >> number[index];
}
for (int index=0; index <10; index++){
cout <<secretCode( number[index]);
}
return 0;
}
char secretCode(int n){
char letters[] = "abcdefghijklmnopqrstuvwxyz";
int number=n;
while(number > 26){
number = number -26;
}
return letters[number-1];
}
Code above runs perfectly well,
Comments
Leave a comment