I am Exponential
All submissions for this problem are available.
The question is simple and straight forward. You are given two integers a (<100) and b(<1000). We want you to calculate ab and sum of its digits.
Input consists of two integers a and b with a space between them.
Output consists of two lines, first line is the value of ab and second line is the sum of digits of ab.
Input: 2 10 Output: 1024 7
|Time Limit:||0.196774 - 1.07517 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, JAVA, GO|
Fetching successful submissions