Professional Documents
Culture Documents
HELLOWORLD
LAB EXERCISES
INTRODUCTION
Practice the ‘my first program’ code in the lecture slides and modify it as much as you can to
learn what has been taught so far.
What you need…
Practice
1. Run the code below:
#include <stdio.h>
int main()
{
printf("Hello, World!\n");
return 0;
}
T-S ADJAIDOO 1
4. Change the ‘Hello, World!’ text to your name and run the code:
printf("Kofi Mensah\n");
int age;
age = 20;
printf("Kofi Mensah is %d years old \n", age);
T-S ADJAIDOO 2