Computer Science, asked by Swarup1998, 1 year ago

Question No. 101 :

Write a C - program to write "Be Brainly".


Anonymous: Thanks for telling. :) @Inflamerofthrancient

Answers

Answered by Anonymous
17

Hey!




Q. Write a C - program to write "Be Brainly".


[I am providing two ways two code this program.]


Here's the code.



(1)


/*C program to print "Be Brainly"*/

/*simple program*/

/*written by Mahnaz*/


main()                                 /*function main*/


{                                     /*start of program*/

   /*printing begings*/

   

   printf("Be Brainly");             /*program statements*/

   

   /*printing ends*/

   

}                                      /*end of programs*/




(2)


/*C program to print "Be Brainly"*/

/*another simple program*/

/*written by Mahnaz*/




#include <stdio.h>   /*#include is the compiler directive and <stdio.h> is the filename containing the required function*/


int main () {       /* int is the keyword with main function*/

   

 printf("Be Brainly \n");     /* program statement*/

 

 return 0;

 

}





______________________________

See the attachment for proper review.

______________________________

Attachments:

Anonymous: It is a good practice to use comment lines. I expained in my own way, Its not matter program looks good or bad after using comment lines.
Similar questions