Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write c language! Design a program to perform arithmetic operation on two long numbers (each with no more than 20 digits, and having no more

Write c language!

Design a program to perform arithmetic operation on two long numbers (each with no more than 20 digits, and having no more than 20 decimal places), and calculate the addition, subtraction, and multiplication result of these numbers.

Input instruction: Input two numbers, each not exceeding 60 digits.

Output instruction: Output the addition, subtraction, and multiplication result of the two numbers.

* For the sake of clarity, numbers in the test case below include spaces every 3 digits. DO NOT INCLUDE SPACES IN THE ACTUAL MULTIPLICATION OUTPUT OF THE PROGRAM. *

sample input:

4 964 658 486 415 446 456.415 646 578 445 481 81 4 656 746 465 456 451 144.456 411 891 848 564 84

Expected Output:

9 621 404 951 871 897 600.872 058 470 294 046 65 307 912 020 958 995 311.959 234 686 596 916 97 23 119 155 858 813 504 855 269 906 941 333 916 997.132 107 396 478 582 945 643 340 430 825 560 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions