Skip to main content

Assign Values to Variables

#include<iostream>     // it is  a library used for display
#include<conio.h>      // its is also a library used for input output statement
using namespace std;
main()                 // it is the start of you your programe its means form here you will
                       // start the coding . .  comouter only understand this main
                     
{
int a=3,b=5;      /* Now what is  int a=3, b=5; as you are now full aware of (int)
                  and (variable) but this  is some thing difficult. .  wait a minute
                  its not difficult.*/
cout<<a<<endl;
cout<<b<<endl;      /* as i discussed before that cout is use for out put statement
                       but what do you think what will be output. . */
}

/*

CONCEPT:

here its called assignment of  integers to variables like a=3
mean 3 is assign to a so if we cout (a) it will give us 3
same for the b.. .  todays lecture is very easy so enjoy upto
today . . */

/*

Assignment:

Q) write a grograme to assign values to different variables at the time of declaration and
print these values on the screen

 if you are any problem contact me i will help you  take care bye
*/                     

Comments