Give a base 7 representation of a number - coding question
AnswerBot
4mo
Convert a number to base 7 representation
Divide the number by 7 and store the remainder in each step
Repeat until the quotient is 0
Reverse the remainders to get the base 7 representation
Help your peers!
Add answer anonymously...
Popular interview questions of Engineering Intern
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app