daily pastebin goal
3%
SHARE
TWEET

Функции

Tarikatse Nov 23rd, 2017 (edited) 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. int assign_mark(int& student_mark,int mark)
  3. {
  4. if(mark<=6 && mark>=2){
  5.     student_mark=mark;
  6.     return 1;
  7. }else return 0;
  8. }
  9. using namespace std;
  10.  
  11. int main()
  12. {
  13.    int Anton_mark=0;
  14.    assign_mark(Anton_mark,6);//Антон има 0 от почването на програмата и тука се извиква че има 6
  15.    cout<<"Anton has a "<<Anton_mark;
  16. }
RAW Paste Data
Top