Yangi mavzu bayoni:
Quyidagi ifodalarni Paskal dasturlash tilida yozing.
b)
d)
e)cos3sin2x+cosa5;
f)
a
2. Quyida Paskalda yozilgan ifodalarning qiymatini hisoblang.
a) sqr(trunc(4.95)) =sqr(4)=16
b) trunc(int(4.95)+0.7)=trunk (4+0,7)=trunc(4.7)=4
d) round(trunc(3.5)+0.7)=round(3+0.7)=round(3.7)=4
e) 3+frac(12.5)=3+0.5=3.5 f) sqrt(sqr(16))=sqrt(256)=16
g) sqrt(sqrt(256)+9)=sqrt(16+9)=sqrt(25)=5
h) sqr(5-abs(-5))=sqr(5-5)=sqr(0)=0
i) abs(-sqrt(16))=(-4))=4
3. a= 5, b=4 bo'lsa, quyida Paskalda yozilgan ifodalarning qiymatini hisoblang.
a) abs(a+b-a*b)=abs(5+4-5*4)=abs(9-20)=abs(-11)=11
b) sqr(a+b-a*b)-110=sqr(5+4-5*4)-110=sqr(9-20)-110=sqr(-11)-110=121-110=11
d) round(a/b+0.3)+9=round(5/4+0.3)+9=round(1.25+0.3)+9=round(1.55)+9=2+9=11
e) 3+frac(b/a)=3+frac(5/4)=3+frac(1.25)=3+0.25=3.25
f) sqrt(sqr(a)-b*b); g) sqrt(sqrt(a+b)+6);
h) sqr(a-abs(b-a)); i) abs(9~sqrt(a*b+a)).
Uyga vazifa: Mavzuni o’rganib kelish.4-mashqni bajarish.
4. Quyida Paskalda yozilgan ifodalar qiymati qanday turdagi o'zgarmas bo'lishini aniqlang.
a) abs(-sqrt(2011)); b) abs(sqr(2)) + 19;
d) frac(abs(-20)); e) int(1.9)*trunc(0.2).
Sana :_____________
Sinf :______________
21- dars. Mavzu: O'zlashtirish va ma'lumotlarni ekranga chiqarish operatori
|