Laboratory Activity No. 1
Laboratory Activity No. 1
2
Notes:
1. Make sure you have created a folder in your D drive. (folder name: ME2)
2. Save your programs as prg1.c prg2.c prg3.c and so on and so forth.
Alt+R
Alt+C
Alt+P
Alt+O
Alt+D
Alt+B
6. The blue part of your Turbo C Environment is divided into two: Edit and
Message. The Edit Box is where you will type your programs and the Message
Box is where you will find messages from Turbo C (e.g errors, warnings, etc.)
7. To create a new file, do the ff:
a. ALT F
b. Arrow down to new
c. ALT F
d. Arrow down to write to
f.
8. Once done typing, save your file. To save your file, press F2.
9. To run your program, press CTRL F9. Provide a screenshot of your program
below.
12.To clear the screen, add clrscr() to your code. What happens?
The second Hello World got deleted from the blue screen.
main()
this is the start of the default function for your program. always
include this on your codes.
printf(Hello World \n); this prints the word Hello World on the screen. \n means
new line or enter.
getch();
end of program
Write a C program that will produce the following output. Replace with your details.
Save it on your folder in d drive. Provide screenshots of your code and your output.