0% found this document useful (0 votes)
26 views5 pages

Coal Lab 4

Uploaded by

dddsasda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views5 pages

Coal Lab 4

Uploaded by

dddsasda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

2023F-BCS-264

Lab#4

LAB#04:
1- Write a program to clear the screen, set the cursor at the beginning of the fifth line from the top
of the screen, and display "We are the students of Computer Science & Information
Technology Department!"
Code:

Output:
2023F-BCS-264
Lab#4

2- Write a program to get the first name of the user by displaying the message “Enter your
first name:” on screen. Store it in a array named “FName”, and display the entered name,
character by character, in the next line with the message “Your first name is ...”.
Code:

Output:
2023F-BCS-264
Lab#4

3- Write a program to modify the activity-2 to display the entered name using service 9 of
INT 21h.
(Hint: a ‘$’ character must be appended at the end of first name entered by the user)
Code:

Output:
2023F-BCS-264
Lab#4

4- Write a program to display the following pattern at the center on the cleared screen.

12345
234
3
432
54321
Code:
2023F-BCS-264
Lab#4

Output:

You might also like