3 תשובות
אני יכול לכתוב בjava אם זה עוזר
בייסיקלי אותו דבר
boolean check = false;
int a = 0,b = 0;

for(int i = 0;i < 10; i++) {

system.out.println("are you pleased?");
check = in.nextboolean();

if(check == false) {
a++;
}else {
b++;
}

}

system.out.println("number of pleased people in the company: " + b);
system.out.println("number of unpleased people in the company: " + a);