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
No comments:
Post a Comment