JakubKaczmarek_123

z15

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