Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

added third file #29

Merged
merged 1 commit into from
Oct 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Problems/Problem_3/problem_3.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include<stdio.h>
int main()
{
int a,b,c;
printf("Enter three numbers(a,b,c):");
scanf("%d %d %d",&a,&b,&c);
if((a*a)==(b*b)+(c*c))
{
printf("%d %d %d",a,b,c);
}
else
{
if((b*b)==(a*a)+(c*c))
{
printf("%d %d %d",b,a,c);
}
else
{
if((c*c)==(a*a)+(b*b))
{
printf("%d %d %d",c,a,b);
}
else
{
printf("NOPE!");
}
}
}
}