0
Pleaze, help me to finde bugs
//#include "stdafx.h" #include <locale.h> #include <stdio.h> //#include <conio.h> #include <cmath> using namespace std; int main() { float y,x,z,a,b; setlocale (0,"russian"); puts ("Введите x и z"); scanf ("%f_%f",&x,&z); a=x*x-10; b=tan(6*z-6*x); if (b=0) puts ("Решений нет"); else { (y=a/b); printf("Ответ=%6.5f\n",y); } return 0; }
1 Odpowiedź
0
sorry im also a tsudent and d'ont cnow what you want specific
but here
//#include "stdafx.h"
#include <locale.h>
#include <stdio.h>
//#include <conio.h>
#include <cmath>
using namespace std;
int main()
{
float y, x, z, a, b;
setlocale (0,"russian");
puts ("Введите x и z");
scanf ("%f_%f", &x, &z);
a = x * x -10;
b= tan(6 * z - 6 * x);
if (b <= 0)
{
puts ("Решений нет");
}
else
{
(y = a / b);
printf("Ответ=%6.5f\n", y);
}
return 0;
}
he have no warnig and error try tis is that you want .
sorry but i am no good en english .