-
-
Save enzerr/daf00224e63d38d71fb21b27e0fcce7e to your computer and use it in GitHub Desktop.
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