Skip to content

Instantly share code, notes, and snippets.

@draganczukp
Created March 7, 2018 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save draganczukp/86b92fb4ab393b52df9dd85ec012b86f to your computer and use it in GitHub Desktop.
Save draganczukp/86b92fb4ab393b52df9dd85ec012b86f to your computer and use it in GitHub Desktop.
int licz(int n){
int suma = 0;
// Nie pamiętam do ilu trzebabyło sumować
for(int i = 0; i < 1000; i+=2){
suma += i;
}
return 2 * (suma*suma*suma);
}
int main(){
licz(-8);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment