repl.it
@maniero/

Power.c

C

No description

fork
loading
Files
  • main.c
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <math.h>

int main (void) {
    int hip, cat1, cat2;
    scanf("%d", &cat1);
    scanf("%d", &cat2);
    scanf("%d", &hip);
    if (hip * hip == cat1 * cat1 + cat2 * cat2) printf("SIM");
    else printf("NAO");
}

//https://pt.stackoverflow.com/q/56916/101
Fetching token
?