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).
The answer to the question is available in the PDF file https://assignmentexpert.com/https://assignmentexpert.com/homework-answers/programming-answer-37214.pdf
Comments
Leave a comment