Question: First Two Digits You are given an array consisting of n integers. Calculate the sum of the array and print the first two digits. If

First Two Digits
You are given an array consisting of n integers. Calculate the sum of the array and print the first two digits. If the sum of the array is a single-digit number, prefix 0 to it.
Input
The first line of input contains an integer n, representing the number of elements in the given array.
The second line of input contains n space-separated integers, representing the elements of the given array.
 First Two Digits You are given an array consisting of n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!