Skip to content

Instantly share code, notes, and snippets.

@fuwiak
Created May 25, 2020 20:44
Show Gist options
  • Save fuwiak/a2445620f7d53f00f206678a0b9dc254 to your computer and use it in GitHub Desktop.
Save fuwiak/a2445620f7d53f00f206678a0b9dc254 to your computer and use it in GitHub Desktop.
#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