Computer Science, asked by zindagi7978, 13 days ago

write a program that read the value of x,y and print as
x+y/x-y x+y/2 (x+y)(x-y)​

Answers

Answered by thoratprathamesh015
0

Answer:

C language :

#include <stdio.h>

int main () {

int x , y ;

// numbers are saperated by sapce or newline

printf("Enter 2 numbers : ");

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

printf("%d + %d/%d - %d = %.4f\n" , x , y , x , y , (float) (x + y)/(x - y));

printf("%d + %d/2 = %.4f\n" , x , y , (float) (x + y)/2);

printf("(%d + %d)(%d - %d) = %d\n" , x , y , x , y , (x + y)*(x - y));

return 0;

}

Similar questions