6 תשובות
עדיין צריך?
אנונימית
שואל השאלה:
כן אם אפשר
למדתם לולאת פור?
אנונימית
שואל השאלה:
כן
אכתוב את התוכנית בjava אבל אני מניחה שזה דומה
לc
int count=0,count1=0,count2=0;
(++for (int i=1; i<=700; i
}
int a,b;
system.out.println(if you have computer enter 1 else enter 0)
a=reader.nextint();
if (a==1)
count++;
system.out.println(if you have modem enter 1 else enter 0 )
b=reader.nextint();
if (b==1)
count1++;
if (b==0)
count2++;

{
system.out.println(count) *אנשים בעלי מחשב*
system.out.println(count+count1) *אנשים בעלי מחשב ומודם*
system.out.println(count2) *אנשים בלי מחשב*

{
^^ הסימנים הפוכים אז מקווה שזה מובן