Untitled
unknown
plain_text
a year ago
309 B
11
Indexable
#include <stdio.h>
int main() {
float x, y, r, s;
scanf("%f %f %f", &x, &y, &r);
s = (x*x + y*y - r*r);
printf("%f\n",s);
if (s == 0) {
printf("on circumference");
} else if (s < 0) {
printf("inside");
} else {
printf("outside");
}
return 0;
}Editor is loading...
Leave a Comment