Facebook
From Agata, 5 Years ago, written in Plain Text.
This paste is a reply to agatka from domcia - go back
Embed
Viewing differences between agatka and i tak nic ci to nie da
#include 
#include 
using namespace std;
double silnia(double a)
int main () 
{
        double w=1, x;
float a, b, c, x1, x2, delta;
        cout <<"Podaj wartosc a: ";
        cin >> a;
        cout << "Podaj wartosc b: ";
        cin >> b;
        cout << "Podaj wartosc c: ";
        cin >> c;
        if (a==0)
        {
                w=1;
        }
        else
        {
                for(x=1; x<=a; x++)
                w*=x;
        }
        return w;
{
        cout << "Nie dziala";
}
int main()
delta = b*b-(4*a*c);
if (delta==0)
{
        double a, b;
        cout<<"Program, ktory liczy silne z liczb podanych przez uzytkownika ";
        cout<<"Podaj liczbe: ";
        cin>>a;
        if (a>=0)
        {
                cout<<"Wynik 
x1= (-b)/(2*a);
        cout <<"Wynik 
to: "<         }
        else
        { 
        cout<<"nie mozna obliczyc";
        
"<< x1;
}
else
{
if(delta>0)
{
delta=sqrt(delta);
x1=(-b-delta)/(2*a);
cout << "x1 to: "<< x1 < x2=(-b+delta)/(2*a);
cout << "x2 to: "<< x2;

else 
{
        cout <<"delta ujemna";
}
}
        return 0;
}

Replies to i tak nic ci to nie da rss

Title Name Language When
Re: i tak nic ci to nie da vol.2 Agata text 5 Years ago.