Complementary task for topic: 1
M Nemeth · 2023-08-29 15:21:04.602220'
Printf: text
Printf: text
Print a welcome message:
Write a C program that uses printf() to display a welcome message.
Hint: Use double quotes to create string literals (non-mutable text)
Solution
#include
#include
int main() {
printf("Welcome to the program!\n");
return 0;
}
Explanation
In this example, the program uses printf() to display the welcome message "Welcome to the program!".