Chapter 10
Write a C program
to print a greeting of your choice on the screen.
Please reply fast
Answers
Answered by
1
printf("your greeting");
that's it
Answered by
1
A C program to print a greeting of your choice on the screen is as follows:
#include <stdio.h>
int main( )
{
printf(" Good Morning. Have a nice day ! ");
return 0;
}
- Here, inside the printf statement, you can insert your own greeting according to your choice.
- Make sure that the printf statement is enclosed in quotes because only then the string of characters entered will be displayed on the screen.
Similar questions
Science,
6 months ago
Math,
6 months ago
Computer Science,
6 months ago
Hindi,
1 year ago
Math,
1 year ago