c Pythagorean triples
{3,4,5}
c Pythagorean triples
#include <stdio.h>
#include <stdlib.h>
int main() {
int a, b, c;
printf("TERNE PITAGORICHE!\n\nPrimo numero: ");
scanf("%d", &a);
printf("Secondo numero: ");
scanf("%d", &b);
printf("Terzo numero: ");
scanf("%d", &c);
if((a * a + b * b) == (c * c))
{
printf("E' una terna pitagorica!\n\n\n");
}
else
{
printf("Non e' una terna pitagorica!\n\n\n");
}
system("pause");
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us