This content originally appeared on DEV Community and was authored by madina1575
Foydalanuvchidan ma'lumot qabul qilish uchun C# dasturlash tilida Console.ReadLine()
buyrug'i ishlatiladi va bu buyrug' faqat string tipiga mansub.
Agar biz int, char, float kabi tipdagi ozgaruvchilarni qabul qilishni xohlasak Convert yoki Parse qilishimiz kerak bo'ladi
Bu yerda ikta o'zgaruvchi input qilingan va ular ustida amallar bajarilgan.
Natija quyidagicha bo'lishi mumkin:
Birinchi sonni kiriting: 15
Ikkinchi sonni kiriting: 4
Ikki sonning yig'indisi: 19
Ikki sonning ayirmasi: 11
Ikki sonning ko'paytmasi: 60
Ikki sonning bo'linmasi: 3
Bo'lingandagi qoldig'i: 1
This content originally appeared on DEV Community and was authored by madina1575
madina1575 | Sciencx (2025-01-20T20:12:50+00:00) C# dasturlash tilida Input qilish. Retrieved from https://www.scien.cx/2025/01/20/c-dasturlash-tilida-input-qilish/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.