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



using namespace std;

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(void) {
        
        float a, b, c;
        float wynik;
        
        
L, P;
int n;

jeszczeRaz:

cout << "Wprowadz lewa granice: L i prawa granice: P" << endl;
cin >> a;
        
L;
cin >> b;
        
P;
cout << endl <<"Wprowadz ilosc zmiennych x" << endl;
cin >> c;
        
        if((a > b) 
n;

        if(L < P 
&& (a c)) 
                wynik 
10)
                continue;
        else 
                goto jeszczeRaz;
                
                float *Tx 
a;
        else if((b > a) && (b > c)) 
                wynik 
new float[n];
                float *F 
b;
        else if ((c > a) && (c > b)) 
                wynik 
new float[n];
                
                float k 
c
(P - L) / (n - 1);
                
                float x = L;
                
                for(int i = 0;i < n; ++i) {
                        
        if(wynik                         Tx[i] a)
                cout << "Max(a,b,c)= " << fix << setprecision(2) << a << endl;
        else if(wynik 
x;
                        F[i] 
b)
                printf("Max(a,b,c)=%.2f",b);
        else if(wynik = c)
                        printf("Max(a,b,c)=%.2f",c);
3.5 * x * x + 8.2 * x + 1.3;
                        x += k;
                        
                
                }
                                
        delete[] Tx;
        delete[] F;        
        
        
        cin >> ignore();
        
        return 0;
}

Replies to Re: Re: Untitled rss

Title Name Language When
Re: Re: Re: Untitled Social Elephant text 5 Years ago.