Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- string emri;
- double mesatarja;
- double nota;
- double shuma;
- double sh=0,nr=0;
- string prgj;
- cout<<"Jep emrin e studentit :";
- cin>>emri;
- do {
- cout<<"Jep noten e Studentit : ";
- cin>>nota;
- sh=sh+nota;
- nr=nr+1;
- mesatarja=sh/nr;
- cout<<"Studenti me emer "<<emri<<" e ka mesataren : "<<mesatarja<<endl;
- cout<<"Deshironi te jepni note tjeter"<<endl;
- cin>>prgj;
- }while (prgj=="po");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement