3 תשובות
שואל השאלה:
יחסית בהכל אשמח לתשובה גם אם אתם לא בטוחים או יודעים רק תכתבוו
יחסית בהכל אשמח לתשובה גם אם אתם לא בטוחים או יודעים רק תכתבוו
וואו אני זוכר שעשיתי את השאלה במדעי המחשב לפני 3 שנים..
public void gradesstats(){
int countpassed = 0;
int countsixtyplus = 0;
int sum= 0;
for(int i;i<100;i++){
int grade = sc.nextint();
{if(grade>60)
sum+=grade;
}countsixtyplus++;
if(grade>=55)
countpassed++;
{
system.out.println(countpassed+" " +100-countpassed) + " " + sum/countsixtyplus);
{
public void gradesstats(){
int countpassed = 0;
int countsixtyplus = 0;
int sum= 0;
for(int i;i<100;i++){
int grade = sc.nextint();
{if(grade>60)
sum+=grade;
}countsixtyplus++;
if(grade>=55)
countpassed++;
{
system.out.println(countpassed+" " +100-countpassed) + " " + sum/countsixtyplus);
{
באיזה חלק הסתבכת?
אנונימי
באותו הנושא: