Skip to content

Instantly share code, notes, and snippets.

@modos
Created March 1, 2024 01:39
Show Gist options
  • Save modos/610439b4f10907a881b0283514d6ab27 to your computer and use it in GitHub Desktop.
Save modos/610439b4f10907a881b0283514d6ab27 to your computer and use it in GitHub Desktop.
تکرار کدکاپی
#include <iostream>
using namespace std;
int main()
{
int number;
cin >> number;
if (number % 8 == 0) cout << "6" << endl;
else if(number % 8 == 1 || number % 8 == 5) cout << "c" << endl;
else if(number % 8 == 2) cout << "o" << endl;
else if(number % 8 == 3) cout << "d" << endl;
else if(number % 8 == 4) cout << "e" << endl;
else if(number % 8 == 6) cout << "u" << endl;
else cout << "p" << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment