Write a Ruby program which accept the user's first and last name and print them in reverse order with a space between them

  • برمجة روبي
  • برمجة

Write a Ruby program which accept the user's first and last name and print them in reverse order with a space between them.

الأجوبة

 

def in2030(a, b)
   return ((a >= 20 && a <= 30) || (b >= 20 && b <= 30));	
end

print in2030(15, 99),"\n"
print in2030(25, 28),"\n"

Output:

false
true.
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...