Mr. Jhon was very good in Mathematics and coding. He was given 2 positive numbers a and b. You also have the number x, which is initially set to 0. Initially, you can add an x to any number of times....


Mr. Jhon was very good in Mathematics and coding. He was given 2 positive numbers a and b. You<br>also have the number x, which is initially set to 0. Initially, you can add an x to any number of times.<br>After that, you can divide x by b any number of times as long as x is divided by b.<br>Write a program to Print YES if you can make x equal to 1, otherwise print NO in C++.<br>Input<br>1<br>3 10<br>Output:<br>

Extracted text: Mr. Jhon was very good in Mathematics and coding. He was given 2 positive numbers a and b. You also have the number x, which is initially set to 0. Initially, you can add an x to any number of times. After that, you can divide x by b any number of times as long as x is divided by b. Write a program to Print YES if you can make x equal to 1, otherwise print NO in C++. Input 1 3 10 Output:

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here