Professional Documents
Culture Documents
Hello World Assignment
Hello World Assignment
~/Documents/OSLab/assignments/week6.
3. Inside the 'week6' directory, create a C code file named 'hello-
world.c' using the nano text editor that prints 'Hello world from
terminal!!'
4. Inside the 'week6' directory, create another C code file named
'findLargest.c' using the nano text editor that takes three integer
values from the user and prints the largest number of the three.
5. Compile the 'hello-world.c' file using the 'gcc' command and
execute the 'a.out' file.
• Take a screenshot of the terminal with the code’s output.
6. Compile the 'findLargest.c' file using the 'gcc' command and
execute the 'a.out' file.
• Enter the values 1, 2, and 3 as input respectively.
• Take a screenshot of the terminal with the code’s output.
7. Finally, display the code inside both these files using the 'more'
command
• Take a screenshot of the terminal.
8. Add the three screenshots mentioned above in one PDF and
upload that PDF