Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. string emri;
  7. double mesatarja;
  8. double nota;
  9. double shuma;
  10. double sh=0,nr=0;
  11. string prgj;
  12.  
  13. cout<<"Jep emrin e studentit :";
  14. cin>>emri;
  15. do {
  16.  
  17. cout<<"Jep noten e Studentit : ";
  18. cin>>nota;
  19.  
  20. sh=sh+nota;
  21. nr=nr+1;
  22. mesatarja=sh/nr;
  23.  
  24. cout<<"Studenti me emer "<<emri<<" e ka mesataren : "<<mesatarja<<endl;
  25.  
  26. cout<<"Deshironi te jepni note tjeter"<<endl;
  27. cin>>prgj;
  28. }while (prgj=="po");
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement