HW5

You cannot submit for this problem because the homework's deadline is due.

Submission

Please upload a "hw5.zip" file containing your program. Name your program as "hw5.c".

Description

In C, hexadecimal numbers can be represented as character strings such as
“1A2B3C4D5E6F”. Write a program to ask the user input of two hexadecimal numbers, then calculate and display their sum. For simplicity, let’s consider only positive integers, and the number of digit is less than 255 (Notice that the number could be very large, for example have 100 digits). And you don’t need to consider invalid inputs. Please use the following formats for input and output:

Format

Input

printf("hexadecimal number 1: ");  scanf("%s", hex1); 
printf("hexadecimal number 2: ");  scanf("%s", hex2); 

Output

printf("Their sum is %s\n", hexsum); // hexsum is the sum of hex1 and hex2

Sample 1

Input

1A
2B

Output

hexadecimal number 1: hexadecimal number 2: 45

Limitation

1s, 1024KiB for each test case.

HW5

Not Claimed
Status
Finished
Problems
1
Open Since
2019-10-30 00:00
DDL
2019-11-04 23:59
Extension
2400.0 hour(s)