"HELLO WORLD" EXERCISES
1. Are the following programs legal?
(a) #include <stdio.h>
main() {
printf("Hello World\n");
}
(b) #include <stdio.h>
void main() {
printf("Hello World\n");
}
2. Write a program that reads in two integers and prints their sum.
3. Write a program that prints "Hello World" 5 times.
4. Write a program that reads in an integer and prints out "Hello World"
that many times.