7.3.. Napisati program za ispis uspjeha, prema slijedeŠoj tabeli:

Listing programa:

//07311004
#include <iostream>
using namespace std;

int
main(void)
{
	int oc;
	cout<<"Uspjeh"<<endl;
	cout<<"Ocjena (1 5)"<<endl;
	cin>>oc;
	switch(oc)
	{
		case 1: cout<<"Nedovoljan"<<endl; cout<<endl; break;
		case 2: cout<<"Dovoljan"<<endl; cout<<endl; break;
		case 3: cout<<"Dobar"<<endl; cout<<endl; break;
		case 4: cout<<"Vrlodobar"<<endl; cout<<endl; break;
		case 5: cout<<"Odlican"<<endl; cout<<endl; break;
	}

	system("PAUSE");
	return EXIT_SUCCESS;
}

Ispis na ekranu:

Index