Facebook
From Social Elephant, 11 Months ago, written in Plain Text.
This paste is a reply to Re: Re: Untitled from Edgy Matamata - view diff
Embed
Download Paste or View Raw
Hits: 99
  1. #include <iostream>
  2. #include <math.h>
  3.  
  4. using namespace std;
  5.  
  6. //float Heron(x, y, z);
  7.  
  8. int main(void) {
  9.        
  10.         float a, b, c;
  11.        
  12.         cout << "Podaj wartosci a, b oraz c" << endl;
  13.         cin >> a >> b >> c;
  14.        
  15.         if((a > 0 && b > 0 && c > 0) && (a + b > c && a + c > b && b + c > a))
  16.         //      float P = Heron(a, b, c);
  17.         else
  18.                 cout << "Nie istnieje taki trojkat" << endl;
  19.        
  20.  
  21.         cin >> ignore();
  22.        
  23.         return 0;
  24. }