/Jogo.cpp Secret
Created
January 14, 2023 11:52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
int main(){ | |
int x; cin >> x; | |
int t; | |
while(cin>>t){ // "cin>>t" retorna falso e o while se encerra se não há mais nada para ler | |
if(x>t) cout << "maior\n"; | |
if(x<t) cout << "menor\n"; | |
if(x==t) cout << "correto\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment