Skip to content

Instantly share code, notes, and snippets.

@terroo
Last active November 24, 2022 18:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terroo/38d426d12be4336c01cad33167e1049a to your computer and use it in GitHub Desktop.
Save terroo/38d426d12be4336c01cad33167e1049a to your computer and use it in GitHub Desktop.
Brasil x Sérvia
#include <iostream>
int main(){
std::uint16_t brasil, servia;
float time {0.f};
while( time <= 90.f ){
if( time == 15.f || time == 33.f ){
++brasil;
}
time += 1.f;
}
std::cout << "Brasil " << brasil <<
" vs " << servia << " Sérvia" << '\n';
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment