C# dasturlash tilida Input qilish

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 qili…


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

Image description

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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » C# dasturlash tilida Input qilish." madina1575 | Sciencx - Monday January 20, 2025, https://www.scien.cx/2025/01/20/c-dasturlash-tilida-input-qilish/
HARVARD
madina1575 | Sciencx Monday January 20, 2025 » C# dasturlash tilida Input qilish., viewed ,<https://www.scien.cx/2025/01/20/c-dasturlash-tilida-input-qilish/>
VANCOUVER
madina1575 | Sciencx - » C# dasturlash tilida Input qilish. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/20/c-dasturlash-tilida-input-qilish/
CHICAGO
" » C# dasturlash tilida Input qilish." madina1575 | Sciencx - Accessed . https://www.scien.cx/2025/01/20/c-dasturlash-tilida-input-qilish/
IEEE
" » C# dasturlash tilida Input qilish." madina1575 | Sciencx [Online]. Available: https://www.scien.cx/2025/01/20/c-dasturlash-tilida-input-qilish/. [Accessed: ]
rf:citation
» C# dasturlash tilida Input qilish | madina1575 | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.