C programming
Web tutorials on C programming
Pages
Home
plsql
Web development
minor projects
java programming
Python Programming
Friday, 9 October 2015
WAP To check Pythagorean triplets
#include<stdio.h>
#include<conio.h>
void main()
{int s1,s2,hyp;
printf("enter s1,s2,hyp");
scanf("%d%d%d",&s1,&s2,&hyp);
if((s1*s1+s2*s2)==hyp*hyp)
printf("yes");
else
printf("no");
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment