Tuesday, 9 June 2015

Program to illustrate the declaration , initialization and printing a constant variable



Code for Program to illustrate the declaration , initialization and printing a constant variable in C++ Programming



 



 



 
 #include<iostream.h>
 #include<conio.h>


 main()
    {
       clrscr();

       constfloat pi=3.1472;

       cout<<"\n Value of pi = "<<pi<<endl;

       getch();
       return 0;
    }

No comments:

Post a Comment