#include<stdio.h>
#include<conio.h>
#include<math.h>
int main(void)
{
int num,sum,temp;
int a,b,c;
clrscr();
printf("\n\t\tInput the three-digit positive integer number:");
scanf("%d",&num);
a =num/100;
temp =num%100;
b=temp/10;
temp =temp%10;
c =temp;
a =(pow(a,3));
b =(pow(b,3));
c =(pow(c,3));
sum =a+b+c;
if(sum==num)
printf("\n\t\t\tSATISFY THE PROPERTY");
else
printf("\n\t\t\tDOES NOT SATISFY THE REPORT");
getch();
}
No comments:
Post a Comment