Guest User

Untitled

a guest
Jun 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main ()
  5. {
  6. int n = 10;
  7. float nomre;
  8. int shomarande=1;
  9. int gabul=0,mardud=0;
  10. int miyangin=0;
  11. int miyanginkol=0 ;
  12.  
  13.  
  14. while (n>0) {
  15. cout << "Enter Student Number "<<shomarande<<" : ";
  16. cin>>nomre;
  17. --n;
  18. ++shomarande;
  19.  
  20. if (nomre>=10)
  21. ++gabul;
  22. else
  23. ++mardud;
  24.  
  25. miyangin= nomre + miyangin;
  26. }
  27. cout<<"gabulin : "<<gabul<<endl;
  28. cout<<"Mardudin : "<<mardud<<endl;
  29. miyanginkol = miyangin / 10;
  30. cout<<"miyangin kol :"<<miyanginkol<<endl;
  31. return 0;
  32. }
Add Comment
Please, Sign In to add comment