Created
May 25, 2020 20:44
-
-
Save fuwiak/a2445620f7d53f00f206678a0b9dc254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int liczba_punktow(int x, int f, float so){ | |
if(f>94 && so>4.0) | |
return x+20; | |
else | |
return x; | |
} | |
int main(){ | |
int pkt, freq; | |
float so; | |
cout << "Podaj liczbe punktow " << endl; | |
cin >> pkt; | |
cout << "Podaj srednia ocen " << endl; | |
cin >> so; | |
cout << "Podaj liczbe procent frekwencji " << endl; | |
cin >> freq; | |
cout <<"liczba zdobytych punktow wynosi " << liczba_punktow(pkt, freq, so) << endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment