If/Else Homework
A “magic” number is an integer in which the number is equal to the sum of the cubes of its digits. Write a program to determine whether a three digit number entered by the user is a magic number.
I have started on this but I do not know how to continue! Please give me hints or tips!
Code:
#include <iostream>
#include <cmath>
using namespace std;
int main () {
int x,y,z;
cout<<"Input the first digit of the 3 digit number: " ;
cin>>x;
cout<<"Input the second digit of the 3 digit number: ";
cin>>y;
cout<<"Input the third digit of the 3 digit number: ";