According to entered number (b), please find the “a” numbers corresponds
equation b = a3 * a2.
My codes. Whats the mistake ? thanks for helping.
#include"stdio.h"
#include"conio.h"
#include"math.h"
int main(void)
{
int a,b = 0;
printf("Please enter a number");
scanf("%d",&b);
for(int a = 0;a<1000;a++)
{
if(b==(a*a*a)-(a*a))
{
printf("%d",a);
}
}
getche();
}