блок-схема
листинг кода

#include "stdio.h"
#include "conio.h"
#include "math.h"
int main()
{
float a=0.1, b=2.1, x=a, y, h=0.2;
while (x<=b+0.1)
{
if(tan(x)>0.1)
y=sin(x);
if (tan(x)<=0.1)
y=cos(x);
printf("\nf(%.5f) = %.5f", x, y);
x+=h;
}
getch();
return 0;
}
результат

Оценка - 1.0 (12)

2015-06-29 • Просмотров [ 1078 ]