Facebook
From Social Elephant, 5 Years ago, written in Plain Text.
This paste is a reply to Re: Re: Untitled from Edgy Matamata - go back
Embed
Viewing differences between Re: Re: Untitled and Re: Re: Re: Untitled
#include 


#include 

using namespace std;

//float Heron(x, y, z);

int main(void) {
        
        float L, P;
int n;

jeszczeRaz:

a, b, c;
        
        
cout << "Wprowadz lewa granice: L i prawa granice: P" "Podaj wartosci a, b oraz c" << endl;
endl;
        
cin >> L;
cin 
>> P;
cout << endl <<"Wprowadz ilosc zmiennych x" << endl;
cin 
>> n;

        if(L < P 
c;
        
        if((a > 0 
&& 10)
                continue;
0 && c > 0) && (a + b > c && a + c > b && b + c > a))
        //        float P = Heron(a, b, c);
        else 
                goto jeszczeRaz;
                
                float *Tx = new float[n];
                float *F = new float[n];
                
                float k = (P - L) / (n - 1);
                
                float x = L;
                
                for(int i = 0;i < n; ++i) {
                        
                        Tx[i] = x;
                        F[i] = 3.5 * x * x + 8.2 * x + 1.3;
                        x += k;
                        
                }
                                
        delete[] Tx;
        delete[] F;        
        
        
cout << "Nie istnieje taki trojkat" << endl;
        

        cin >> ignore();
        
        return 0;
}