Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int a;
- int main(){
- for (int i = 10; i > 0; i--) a += i*i;
- cout << "ilosc cegiel w piramidzie to: " << a << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment