Подскажите в чем ошибка. Считает до бесконечности каждое значение

с++

#include

#include

#include


int main(void) {

system("chcp 1251>nul");

double x, y;

printf("Введите x=");

scanf("%/y", &x);

if (x <= 0)

y = pow(x, 4);

else (x > 0);

y = log10(x);

scanf("%/y", &x, &y);

printf("x=%3f\n", x);

printf("y=%3f\n", y);

return 0;

}
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.