Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Khisby Al Ghofari, 06.2017.1.06852, Kelas B
- #include <iostream>
- using namespace std;
- int main()
- {
- string one,two,three;
- cout << "\n==============================================\n";
- cout << "Welcome To \n";
- cout << "Application Block Letters\n";
- cout << "================================================\n \n";
- cout << "\nInput three letter(only x or o) ";
- cout << "\n\nInput one letter:";
- cin >> one;
- cout << "Input two letter:";
- cin >> two;
- cout << "Input three letter:";
- cin >> three;
- if(one == "x"){
- one = "X";
- }else if(one == "o"){
- one = "O";
- }
- if(two == "x"){
- two = "X";
- }else if(two == "o"){
- two = "O";
- }
- if(three == "x"){
- three = "X";
- }else if(three == "o"){
- three = "O";
- }
- cout << "\n\n\none letter : " << one << "\n";
- cout << "two letter : " << two << "\n";
- cout << "three letter : " << three << "\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement