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

Popular posts from this blog

Variable And INT

#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() { int a;                           /* what is (int) here and what is (a) here                    the two question which was in mind of me                    when i was in first semester*/                   } /* Here there are two thing 2) int 1) a: is basically a Variable which represent a storage or memory in computer like if we define (int a) then a memory is located in computer to store the value of a it can be changed during execution of program but i will define it later 2) int 2) INT : int basically specifies the type of da...

Android Tutorial for Beginners 1 # Introduction and Installing and Confi...

Android development Role  Today the Mobile communication systems play very important role in our day to day life. There is enhancement in data rate and availability of data in mobile communication. Mobile provides the function of reminder depends on date and time. But now day’s smart phones provides us various application. One of the applications provided by smart phones is reminder which base on time. In this paper we introduce a new technology which is depends on Android OS which give the reminder about place that user want to visit. In the first part of this paper there is introduction about the application. In reaming paper will explain the technology. INTRODUCTION There is a lot of reminder and alert system in today’s mobile phones. But all these reminder system work based on time and da te. Sometimes there is desire for reminders based on location. For an example in daily routine we go to mall to purchase listed items n most of the times we forget s...