C-Girilen b tamsayısına göre a^3-a^2=b eşitliğindeki a'yı bulan program

Konu sahibi son olarak 3314 gün önce görüldü
Kod:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main ()
{
int a,b,c;
printf("b sayisi giriniz:");scanf("%d",&b);
for (a=0;a<=100;a++)
{
c=pow(a,3)-pow(a,2);
if(c==b)
{
printf("a sayisi :%d",a);goto son;
}    
}
printf("oyle bi sayi yoktur");
son : getch(); return 0;
}
 
Geri