in c++ write a program to input 4 digit number and print the sum of first two digits and last two digits
Answers
Answered by
0
Answer:
sorry i don't know the answer
Answered by
0
Answer:
Check if number is greater than 999 and less than 10000 (validation for four digit number).
Using number%100 will return the last two digits (i.e. remainder).
Add 4
Return the sum.
Explanation:
just science bro
Similar questions