Ruby
xxxxxxxxxx
def AddNum()
print "Enter number1: ";
num1 = gets.chomp.to_i;
print "Enter number2: ";
num2 = gets.chomp.to_i;
add = num1 + num2;
return add;
end
print "Addition is: ",AddNum();
Enter number1: 12 Enter number2: 45 Addition is: 57
Linux - كيفية تثبيت anc-api-tools
Linux - كيفية تثبيت curvedns
Linux - كيفية تثبيت zenmap
Python - تحقق مما إذا كان الرقم موجبًا أم سالبًا أم 0
C - عد عدد الأرقام في عدد صحيح
C++ - تحقق مما إذا كان الرقم أوليًا أم لا
C - ابحث عن أكبر رقم باستخدام تخصيص الذاكرة الديناميكي
C++ - تحقق من السنة الكبيسة
Kotlin - عكس رقم
JavaScript - تحقق مما إذا كانت السلسلة تبدأ وتنتهي بأحرف معينة
Linux - كيفية تثبيت zstd
C++ - البحث عن الحاصل والباقي
Kotlin - أوجد عاملي العدد
Linux - كيفية تثبيت xbitmaps
Python - كتابة ملفات إكسل (XLSX)
Java - عكس رقم
Kotlin - تقريب رقم إلى n منازل عشرية
Java - إنشاء الهرم والنمط
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month