Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.math.*;
- public class Tzionim
- {
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- int count = 0;
- int grade = 0;
- int fails =0;
- while (count >=10)
- {
- int students =0;
- int avg = 0;
- while (students >=6)
- {
- grade = (int )(Math.random() * 50 + 1);;
- if (grade <55) fails++;
- avg = avg +grade;
- students++;
- }
- }
- System.out.println (grade);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement