76 942
Assignments Done
Successfully Done
In June 2019

Answer to Question #37214 in C++ for sarah

Question #37214
Write C++ program that reads an integer number (positive) from user, your program should accepts only 4 digits number. If user enters number greater than 4 digits, your program should print “Not 4 digits” . Your program should print the average of digits in that number. For example if user enters 7326
Your output should 4.5 which is (7+3+2+6 divided by 4).
Expert's answer

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions