Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. // m - virvės ilgis
  5. // a, b - kraštinių ilgiai
  6. // S - plotas
  7. int m, a, b, S;
  8.  
  9. cout << "Iveskite virves ilgi metrais:" << endl;
  10. cin >> m;
  11.  
  12. a = m/4;
  13. b = m/2-a;
  14. S = a*b;
  15.  
  16. cout << "Aptvertos teritorijos plotas:" << S << endl;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement