Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <stdbool.h>
- #include <math.h>
- /**
- * Auto-generated code below aims at helping you parse
- * the standard input according to the problem statement.
- **/
- int main()
- {
- float a;
- scanf("%f", &a);
- float b;
- scanf("%f", &b);
- // Write an answer using printf(). DON'T FORGET THE TRAILING \n
- // To debug: fprintf(stderr, "Debug messages...\n");
- printf("%.2f\n", sqrt((a*a)+(b*b)));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement