Computer Science, asked by nyasagandhi7, 8 months ago

Chapter 10
Write a C program
to print a greeting of your choice on the screen.



Please reply fast​

Answers

Answered by sujithkumar14
1

printf("your greeting");

that's it

Answered by Anonymous
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