JakubKaczmarek_123

z13

Dec 4th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. int a;
  5.  
  6. int main(){
  7. for (int i = 10; i > 0; i--) a += i*i;
  8. cout << "ilosc cegiel w piramidzie to: " << a << endl;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment