4. A taxicab number is a sum of the cubes of two numbers such that the smallest of them divides the largest. You are given two integers. Check if they can make a taxicab number, print the taxicab number of the input numbers and if they cannot make then print NOT A TAXICAB NUMBER. Write an algorithm and 'C' program for the above scenario. Sample Input and Output: Enter two integers:9 3 Taxicab Number with 9 and 3 is 756 Enter two integers:3 5 NOT A TAXICAB NUMBER

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 22PE
icon
Related questions
Question
100%

c++ please

4. A taxicab number is a sum of the cubes of two numbers such that the smallest of them divides
the largest. You are given two integers. Check if they can make a taxicab number, print the taxicab
number of the input numbers and if they cannot make then print NOT A TAXICAB NUMBER.
Write an algorithm and 'C' program for the above scenario.
Sample Input and Output:
Enter two integers:9 3
Taxicab Number with 9 and 3 is 756
Enter two integers:3 5
NOT A TAXICAB NUMBER
Transcribed Image Text:4. A taxicab number is a sum of the cubes of two numbers such that the smallest of them divides the largest. You are given two integers. Check if they can make a taxicab number, print the taxicab number of the input numbers and if they cannot make then print NOT A TAXICAB NUMBER. Write an algorithm and 'C' program for the above scenario. Sample Input and Output: Enter two integers:9 3 Taxicab Number with 9 and 3 is 756 Enter two integers:3 5 NOT A TAXICAB NUMBER
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr