Assignment
University
University of ReginaCourse
Computer Science (UR)Pages
1
Academic year
2023
priyankavaiya07
Views
0
p {margin: 0; padding: 0;} .ft00{font-size:23px;font-family:Calibri-Light;color:#000000;} .ft01{font-size:23px;font-family:ArialMT;color:#000000;} .ft02{font-size:16px;font-family:Calibri;color:#000000;} .ft03{font-size:23px;line-height:31px;font-family:Calibri-Light;color:#000000;} 6. Write a program that asks the user to enter two numbers, x and y , and computes |x-y|/x+y from math import * x=int(input("Enter the value of x: ")) y=int(input("Enter the value of y: ")) print((abs(x-y)/(x+y)))
Computing Expression |x-y|/(x+y) in Python
Please or to post comments