Skip to content

Instantly share code, notes, and snippets.

@Mati365
Created December 2, 2016 22:20
Show Gist options
  • Save Mati365/b45e9f225d6fe2f2eaa4e467173e7236 to your computer and use it in GitHub Desktop.
Save Mati365/b45e9f225d6fe2f2eaa4e467173e7236 to your computer and use it in GitHub Desktop.
#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