O’zgaruvchi_nomi amal= ifoda;
Bu erda amal quyidagi amallardan biri *,/,%,+,-, &,^,|, <<,>>.
Misol uchun:
X+ =4 ifoda x=x+4 ifodaga ekvivalentdir;
X*=a ifoda x=x*a ifodaga ekvivalentdir;
X/=a+b ifoda x=x/(a+b) ifodaga ekvivalentdir;
X>>=4 ifoda x=x>>4 ifodaga ekvivalentdir;
Sinov uchun savollar:
Qanday arifmetik amallarni bilasiz?
Qiymat berish amali qanday?
Ifoda qanday tuzilgan?
Inkriment va dekriment amallarini izoxlab bering?
Uyga vazifa : С++ tizimida arifmetik amallarni mukammal o'rganish va ularni amaloyotga tatbiq etish.
Adabiyotlar
[6],[7],[8],[9],[10],[11],[13], [14],[15],[16]
Do'stlaringiz bilan baham: |