programming c++

programming c++


1) Open programming C++



2)select new source file
3)Write this program

/* This is a program  That computes the sum of two integer number */  

# include < iostream.h> 
Main ( )
  
int  X , Y , 
sum ; cout <<" \nEnter first number : “; 
cin >> X ; 
cout <<”\nEnter second number : “; 
cin >> Y; sum = X + Y ; 
cout << “\nsum =”<< sum ; 
return 0;  


4) run the project


5)save the file under project 1


6)Compilation process


7)Execute the program


8)8) Insert the data


 Result
QUESTION: 

1) How to 
 a) Compilation process
   -

2) Execute the program
 b)  - Learn how to create a programming using command in C++
 - Learn how to run and printing the program
   - 

No comments:

Post a Comment