Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Ocjene
Language: C/C++
Code:
#include<cmath>
#include<iostream>
using namespace std;

int main()
{

    int a;
    cout << "Unesi ocjenu!" << endl;
    cin >> a;
    if (a==1){
        cout << "Nedovoljan!" << endl;
    }

    if (a==2){
        cout << "Dovoljan!" << endl;
    }

    if (a==3){
        cout << "Dobar!" << endl;
    }

    if (a==4){
        cout << "Vrlo dobar!" << endl;
    }

    if (a==5){
        cout << "Odlican!" << endl;
    }

    if (a<1||a>5){
        cout << "Nepravilan unos!" << endl;
    }

    return 0;
}
Comments: