profile
Опубликовано 5 лет назад по предмету Информатика от tournesoul

Блок-схему и прогу на с++

  1. Ответ
    Ответ дан PatifonKakao
    #include <cstdlib>
    #include <iostream>
    #include <math.h>

    using namespace std;

    double lnsqr(double y)
    {
        y*=y;
        y=log(y);
        return y;
    }
    int main(int argc, char *argv[])
    {
        double x,a,b,c;
        cin >>a; cin>>b; cin>>c;
        x=lnsqr(a)+lnsqr(b)+lnsqr(c);
        cout <<"x= "<<x<<endl;
        system("pause");
        cin.get();
        return EXIT_SUCCESS;
    }
Самые новые вопросы