149th program input & output

Input :  
Enter any integer number, n = 123
Output :- Digital root = 6
//////////////////////////////////////////////////////////////////////////////////////////////

Input :  
Enter any integer number, n = 568
Output :- Digital root = 19
//////////////////////////////////////////////////////////////////////////////////////////////

Input :  
Enter any integer number, n = 89
Output :- Digital root = 17
//////////////////////////////////////////////////////////////////////////////////////////////