Header Ads

Hii,I am Anand Nayak.This blogger is make for specially basic programs of some language.

Get and Read of Variable

In this language used toal header file 49,which included 19 of C language.
some diffrence are in this language compare to C. like We don't use %d,%c,%f etc.compiler is automatically understood it.
  lets see programe how to get and read any variable.

#include<iostream.h>    // Both are header file of c++
#include<conio.h>
 void main()
 {
      int num;
      cout<<"Enter a Number "<<endl;    //endl is used for go on new line
   
     cin<<num;                                   //cin also is predifine function which use for get input from user

      cout<<"Your number is"<<num;  / /cout predifine function which we use for  print of anything
 getch();
}

No comments