Created
December 2, 2016 22:20
-
-
Save Mati365/b45e9f225d6fe2f2eaa4e467173e7236 to your computer and use it in GitHub Desktop.
This file contains hidden or 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; | |
string asdasds(unsigned int pkt) { | |
if(pkt == 0 || pkt == 1) { return "mierna"; } | |
else if(pkt == 2 || pkt == 3) { return "niedostateczna"; } | |
else if(pkt == 4 || pkt == 5) { return "dostateczna"; } | |
else if(pkt == 6 || pkt == 7) { return "dobra"; } | |
else if(pkt == 8 || pkt == 9) { return "bardzo dobra"; } | |
else if(pkt == 10) { return "celujaca"; } | |
else | |
return "bledne dane"; | |
} | |
int main() { | |
unsigned int pkt = 0; | |
cout << "podaj liczbe punktow: " << endl; | |
cin >> pkt; | |
cout << "ocena: " << asdasds(pkt) << endl; | |
return 1; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment