Computer Science, asked by aroraharshit2009, 19 days ago

1 1. Write a program to read an integer number of any lengths. Perform the addition and subtraction on the largest and smallest digits of it. Your program must satisfy the following conditions: The number should not cross the unsigned short int maximum value. If the entered value did not satisfied the condition asked to input it again till satisfies the condition. To check the number within the range of unsigned short int use the available constants from limits.h header file. 1 Solve this problem using user-defined function. B​

Answers

Answered by tEnTaCiOnn
0

Answer:

Input : N = 2346

Output : 6 2

6 is the largest digit and 2 is smallest

Input : N = 5

Output : 5 5

Answered by ganeshreddy5359
0

Answer:

Write a program to read an integer number of any lengths. Perform the addition

and subtraction on the largest and smallest digits of it. Your program must satisfy

the following conditions:

 The number should not cross the unsigned short int maximum value. If

the entered value did not satisfied the condition asked to input it again till

satisfies the condition.

 To check the number within the range of unsigned short int use the

available constants from limits.h header file.

 Solve this problem using user-defined function.

Similar questions