Académique Documents
Professionnel Documents
Culture Documents
La b 1
Lab Objectives: By the end of this lab, students should be able to: Construct a simple C program involving printing and comments
/20
Page 2 of 4
TASK 1. Construct a C program to display your name. Put your student ID as comment
----------------------------------------
result ------------------------------------------------
Page 3 of 4
/5
TASK 2. Construct 2 programs as below; Program 1 Printf(We love programming); Printf(It is soooooo easy); Program 2 Printf(We love programming\n); Printf(It is soooooo easy); State the difference between these 2 programs. Then replace \n in Program 2 of TASK 2 with below and state the result(s). (a) \a (b) \t (c) \0 (d) \b (e) \\ (f) \/ (g) \ (h) \ (i) \?
---------------------------------------answer ------------------------------------------------
Page 4 of 4
TASK 3
/5
Write a program which will display the results below, noted that you need to make sure every law align to its statement: Newton 1st Law Inertia? ^_^ Newton 2nd Law F=ma Newton 3rd Law Force=Normal Newton 4th Law 4th law!? r u kidding me?
/10