Data types| Output stream| Variables
source code:
#include<iostream> using namespace std; /* Data Types : 1. built in data type:int ,char ,long int ,double float,float. 2. user defined data type: classes,structures,union,array,etc.
*/ int main() { int i=6,p; //integer values float q; //float values i.e, decimal char s; //character values ,like aplhabets. cout<<"the value contain by the variables: i "<<i; //cin>> operator use for taking input from users. cout<<"\n Please enter the value for q : "<<endl; cin>>q; cout<<"the value of q: "<<q; return 0; } |
Comments
Post a Comment