Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- float a,b,c,sr;
- int srednia()
- {
- cout<<"Podaj pierwsza liczbe";
- cin>>a;
- cout<<"Podaj druga liczbe";
- cin>>b;
- cout<<"Podaj trzecia lcizba";
- cin>>c;
- if(a>b && a>c)
- {
- cout<<"Najwieksz liczba to "<<a;
- }
- else if (b>a && b>c)
- {
- cout<<"Najwieksz liczba to "<<b;
- }
- else if (c>a && c>b)
- {
- cout<<"Najwieksz liczba to "<<c;
- }
- else
- {
- }
- }
- int main()
- {
- srednia();
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement