Skip to content

Instantly share code, notes, and snippets.

@vertrigo
Created November 20, 2012 11:21
Show Gist options
  • Select an option

  • Save vertrigo/4117371 to your computer and use it in GitHub Desktop.

Select an option

Save vertrigo/4117371 to your computer and use it in GitHub Desktop.
лаб1 си - вариант 18
#include <stdio.h>
#include <math.h>
main()
{
float x,y,z,b;
printf("Введите значение x:\n");
scanf("%f",&x);
printf("Введите значение y:\n");
scanf("%f",&y);
z=(2*x+pow(abs(x+y),1.0/3))/log(x);
b=z+sin(x)+log(abs(x+y+z));
printf("Результат: x=%5.2f y=%5.2f z=%5.2f b=%5.2f\n",x,y,z,b);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment