Skip to content

Instantly share code, notes, and snippets.

@nefanov
Created October 27, 2016 18:45
Show Gist options
  • Save nefanov/718119cebb45eda636e48d4b5bf77d29 to your computer and use it in GitHub Desktop.
Save nefanov/718119cebb45eda636e48d4b5bf77d29 to your computer and use it in GitHub Desktop.
mironov
#include <stdio.h>
#include <math.h>
main()
{
double a,b;
scanf ("%f%f", &a ,&b);
if (a<b)
{
printf ("%f\n", (a/sqrt(b*b+b*b)));
}
else
{
printf ("%f\n", (b/sqrt(a*a+b*b)));
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment