COAL LAB 4
COAL LAB 4
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: