Write a program to read the values of x and y and print the results of the following expressions in one line:
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
clrscr();
float y,x;
printf("Please Enter the value of x:= ");
scanf("%f",&x);
printf("Please Enter the value of y:= ");
scanf("%f",&y);
printf("Result= %.2f %.2f %.2f",(x+y)/(x-y),(x+y)/2,(x+y)*(x-y));
getch();
}
#include<conio.h>
#include<math.h>
main()
{
clrscr();
float y,x;
printf("Please Enter the value of x:= ");
scanf("%f",&x);
printf("Please Enter the value of y:= ");
scanf("%f",&y);
printf("Result= %.2f %.2f %.2f",(x+y)/(x-y),(x+y)/2,(x+y)*(x-y));
getch();
}