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) Insert the data





9) Result





QUESTION: 

1) How to 
 a) Compilation process




b) Execute the program


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

No comments:

Post a Comment