Untitled

mail@pastecode.io avatar
unknown
plain_text
23 days ago
309 B
6
Indexable
Never
#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;
}
Leave a Comment