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
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
Geography,
25 days ago
English,
25 days ago
Math,
1 month ago
Social Sciences,
1 month ago
Biology,
8 months ago