Created
June 26, 2016 14:51
-
-
Save joaogui1/64be97b544a784ff526700a4d2752078 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
// calcula a parte inteira da raiz de n | |
int n, sq; | |
cin >> n; | |
for(sq = 1; sq*sq <= n; ++sq); | |
--sq; | |
cout << sq << "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment