Challenge: Hello, C!
Completed
Write a program that prints exactly Hello, C! followed by a new line.
Input
None.
Output
Hello, C!
Example
Output
Hello, C!
Editor
C
Hints
Use printf with the text inside double quotes.
End the text with \n.
Solution explanation
printf prints the text between the quotes; \n ends the line.
Show solution
#include <stdio.h>
int main() {
printf("Hello, C!\n");
return 0;
} Output
Answer
You can practice without logging in. Log in to save completion.
Save your progress
You're practising as a guest, so your progress won't be saved.
- Track every lab you complete
- Earn verifiable lab certificates
- See your progress in every module