Yangi mavzu bayoni:
«Ajdodlar merosini qadrlaylik» matniga ko'k, matn foniga yashil rangni tanlab ekranga chiqaring.
Uses crt;
Begin
Clrscr;
Textcolor(blue); textbackground(2);
Writeln(`ajdodlar merosini qadrlaylik`);
End.
«Vatanni sevmoq iymondandir!» matnini ekranning o'ng tomonidan 12-satrda yashil rangda qizil fonda chiqaring.
Uses crt;
Begin
Clrscr;
Textcolor(green); textbackground(red);
CotoXY(54,12);
Writeln(`Vatanni sevmoq iymondandir!`);readln;
End.
3. «Eng yuqoridagi satr, chapdan», «Eng yuqoridagi satr, o'ngdan», «Eng yuqoridagi satr, o'rtadan», «Eng quyidagi satr, chapdan», «Eng quyidagi satr, o'ngdan», «Eng quyidagi satr, o'rtadan», «Markazdagi satr, chapdan», «Markazdagi satr, o'ngdan», «Markazdagi satr, o'rtadan» matnlarini ekranning matn mazmuniga mos joylarida chiqishini ta'minlovchi dastur tuzing.
4. «Suv — hayot manbayi» degan iborani ekranda 5 xil rangda turli joylarda chiqaruvchi dastur tuzing.
Uses crt;
Begin
textbackground(green); Clrscr;
Textcolor(blue); textbackground(3); CotoXY(5,5);
Writeln(`Suv- hayot manbai`);
Textcolor(red); textbackground(3); CotoXY(10,12);
Writeln(`Suv- hayot manbai`);
Textcolor(green); textbackground(blue); CotoXY(15,20);
Writeln(`Suv- hayot manbai`);
Textcolor(13); textbackground(6); CotoXY(18,18);
Writeln(`Suv- hayot manbai`);
Textcolor(6); textbackground(13); CotoXY(30,24);
Writeln(`Suv- hayot manbai`);
readln;
End.
Uyga vazifa: Mavzuni o’rganib kelish.5-mashqni bajarish.
5. Ekranga 5 ta sinfdoshingizning ismini turli ranglarda va ekranning
sariq rangida chiqaring.
Uses crt;
Begin
textbackground(green); Clrscr;
textcolor(blue); writeln(`feruzbek`);
textcolor(green); writeln(`Sitora`);
textcolor(red); writeln(`Marjona`);
textcolor(13); writeln(`Zarifa`);
textcolor(blue); writeln(`Kamol`);
readln;
End.
Sana :______________
Sinf :____________
|