Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int liczby_pitagorejskie (int a, int b, int c)
- {
- if ((a*a)+(b*b)==c*c){
- return 1;}
- else {
- return 0;
- }
- }
- int main ()
- {
- int a, b, c;
- cout<<"Podaj 3 liczby"<<endl;
- cin>>a>>b>>c;
- cout<<"Funkcja zwraca wartosc "<<liczby_pitagorejskie(a,b,c)<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement