Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Find integer values of functions of integer values
#include <stdio.h> #include <math.h> // mod'd from R. E.'s code double pow(double x, double y); int main(void) { double lower = -1000; double upper = 1000; double y; for (double x = lower; x <= upper; x+=1) { if ((pow(x,2) - 8) == 0) continue; y = (pow(x,3) -13*x + 6) / (pow(x,2)-8); if (y == (int)y) printf("\n%d/%d", (int)x,(int)y); } printf("\n"); return 0; }
run
|
edit
|
history
|
help
0
tiskunti retezcu a zmena pismenke z malych an velke
pointery
kamo discriminant oprava
Min_Max pole čísel
Přestupný rok
TStack_list
BPC cv 5_Test
hrátky s ukazately
TQueue
BPC cv5_kvadraticka - final