10 תשובות
איזה קודים? אנסה לעזור
שואל השאלה:
אה שיט שכחתי לשים קישור
אה שיט שכחתי לשים קישור
אני אכתוב כמה מהם
שואל השאלה:
סבבה תודה רבה זה ממש יעזור^
סבבה תודה רבה זה ממש יעזור^
1. אני אשתמש בdouble אבל אפשר להשתמש גם בint
double n = double.parse(console.readline());
if(n%5==0)
}
console.writeline(the number is true);
{
else
}
console.writeline(the number is false)
}
double n = double.parse(console.readline());
if(n%5==0)
}
console.writeline(the number is true);
{
else
}
console.writeline(the number is false)
}
2.
int n1 = int.parse(console.readline()):
int n2= int.parse(console.readline());
if(n1>n2)
}
console.writeline(n1);
{
else
}
console.writeline(n2)
{
3זה בדיוק אותו דבר רק סימן >
int n1 = int.parse(console.readline()):
int n2= int.parse(console.readline());
if(n1>n2)
}
console.writeline(n1);
{
else
}
console.writeline(n2)
{
3זה בדיוק אותו דבר רק סימן >
4.
int n1 =int.parse(console.readline());
int n2 =int.parse(console.readline());
int sum = n1 + n2;
if(sum%2==0)
}
c.w(its even number);
{
else
}
c.w(its odd number);
int n1 =int.parse(console.readline());
int n2 =int.parse(console.readline());
int sum = n1 + n2;
if(sum%2==0)
}
c.w(its even number);
{
else
}
c.w(its odd number);
8.
c.w(3+8+5=?);
int n= int.parse(console.readline ());
if(n==16)
}
c.w(good job!!);
{
else
}
c.w(no, the answer is 16);
{
c.w(3+8+5=?);
int n= int.parse(console.readline ());
if(n==16)
}
c.w(good job!!);
{
else
}
c.w(no, the answer is 16);
{
10.
..char ch = char.parse
double number=double.parse..
if(ch==t)
}
if(number<=0.10)
}
c.w(the animal is fast);
else
}
c.w(the animal is not fast);
{
else
}
if(number <=10)
}
c.w(the animal is fast);
else
}
c.w(the animal is not fast);
{
לא יצא כזה ברור אבל אין לי יותר מידי זמן לכתוב מדויק
..char ch = char.parse
double number=double.parse..
if(ch==t)
}
if(number<=0.10)
}
c.w(the animal is fast);
else
}
c.w(the animal is not fast);
{
else
}
if(number <=10)
}
c.w(the animal is fast);
else
}
c.w(the animal is not fast);
{
לא יצא כזה ברור אבל אין לי יותר מידי זמן לכתוב מדויק
באותו הנושא: