Programming-Arithmetic-Operators-computer-science-homework-help
Write a program that asks the user to input two real numbers, n1 and n2 . Compute the sum n1 + n2 , the difference n1 – n2 . the product n1 · n2 , and the quotient n1 / n2 (assume n2 ≠0 ), and output the results. Your program output should be formatted as follows:
Enter a real number n1: 64.67 Enter a real number n2: -14.2 64.67 + -14.2 = 50.47 64.67 – -14.2 = 78.87 64.67 * -14.2 = -918.314 64.67 / -14.2 = -4.55423 Press any key to continue |