Loading...
Define a class to accept values in integer array of size 10. Find sum of one digit number and sum of two digit numbers entered. Display them separately. Example: Input: a[ ] = {2, 12, 4, 9, 18, 25, 3, 32, 20, 1} Output: Sum of one digit numbers : 2 + 4 + 9 + 3 + 1 = 19 Sum of two digit numbers : 12 + 18 + 25 + 32 + 20 = 107
Consider the following program segment in which the statements are jumbled. Choose the correct order of statements to calculate and return the factorial of 4. for (k=1; k<=4; k++) → 1 return fa; → 2 long fa = 1, k; → 3 fa*=k; → 4
© 2026 PadhAiPro. This question is provided for educational purposes.