Saturday, December 15, 2018

simple program in c.

/*Simple program in C.*/

ak.


 #include<stdio.h>       //standard input/output.
 #include<conio.h>     //console input/output
 void main()                 //member function
 {
   clrscr();                      //clear screen function
   printf("\nMy first C program.\n");
   printf("\nMy name is Shubham.\n");
   printf("\nMy roll number is 4464.\n");
   getch();                      //for screen hold
  }


 OUTPUT:-
    My first C program.
    My name is Shubham.
    My roll number is  4464.



(use in program)
*  #include<stdio.h> is header file
*  #include<conio.h> is header file
*  \n for next line.
*  void main() for empty return
*  clrscr()  for clear the back work.
*  printf()  for print the value
*  ""  use for string or statement.
*  getch() use for screen hold
*  {} use for starting and ending program.




No comments:

Post a Comment

Wikipedia

Search results

Search The program