DEV Community

Mushtariy
Mushtariy

Posted on

3 2 2 2 4

Variables

int son; (Declaration - e'lon qilish)
son = 11; (Assigment - qiyamt o'zgartirish)

int raqam = 15; (*intialization *- e'lon qilib srzu qiymat berish)

int a,b,c,d,e; (Bir xil tipdagi o'zgaruvchilarni 1 qatorda e'lon qilish mumkin emas)

int raqam = 5; (O'zgaruvchiga 1 xil nom berish mumkin emas)

float harorat, int x = 1; (1 qatorda 1 nechta o'zgaruvchi ishlatb bo'lmaydi)

scope - hudu qoidalari.

Nomlash qoidalari
1.Nomda alifbo harflari , raqamlar va undercore(_) ishlatish mumkin
2.Nomning 1 chi belgisi raqam bo'la olmaydi
3.Nomda maxsus belgilar bo'lishi mumkin emas
4.Maxsus kalit so'zlardan nom sifatida foylalana olmaymiz

Casting rules - katta harf va kichik harf b-n ishlash
Local o'zgaruvchilar cameLcase orqali yoziladi.
propertylar , metod nomlari, class nomlari, PascalCse orqali yoziladi.
Constant qiymatga ega o'zgaruchilar UPPERCASE orqali yoziladi.

"Console.Write"- (cout) - yani chiqarib berish.

"Console.WriteLine" - (Line) - (endl) - kerakli narsani chiqarib berib keyin pastki qatorga tushirib beradi;

"Example" with void

void example
{
int x = 15;
Console.Writeline(x);
}

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (2)

Collapse
 
sabrina_abcdna123 profile image
Sabrina

super

Collapse
 
firdavs_mukhsimov profile image
Firdavs Mukhsimov

zor

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay