Circles of given radius through two points: Difference between revisions
Circles of given radius through two points (view source)
Revision as of 18:25, 9 November 2018
, 5 years ago→{{header|C}}
m (→{{header|C}}) |
|||
Line 247:
=={{header|C}}==
<lang C>#include<stdio.h>
#include<math.h>
Line 292 ⟶ 290:
int main()
{
int i;
point cases[] =
{ {0.1234, 0.9876}, {0.8765, 0.2345},
{0.0000, 2.0000}, {0.0000, 0.0000},
{0.1234, 0.9876}, {0.1234, 0.9876},
{0.1234, 0.9876}, {0.8765, 0.2345},
{0.1234, 0.9876}, {0.1234, 0.9876}
};
double radii[] = {2.0,1.0,2.0,0.5,0.0};
for(i=0;i<5;i++)
{
printf("\nCase %d)",i+1);
findCircles(cases[2*i],cases[2*i+1],radii[i]);
}
return 0;
}
</lang>
Line 327 ⟶ 325:
No circles can be drawn through (0.1234,0.9876)
</pre>
=={{header|C sharp}}==
|