#include<iostream>
using namespace std;
int main()
{
double x,y;
int z;
cout << "Enter two numbers : " ;
cin >> x >> y;
z = int (x + y);
cout << "The addition of two numbers is : " << z << endl ;
return 0;
}
Output:
Enter two numbers : 10.5 12.3
The addition of two numbers is 22.
Hope it helps!
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
#include<iostream>
using namespace std;
int main()
{
double x,y;
int z;
cout << "Enter two numbers : " ;
cin >> x >> y;
z = int (x + y);
cout << "The addition of two numbers is : " << z << endl ;
return 0;
}
Output:
Enter two numbers : 10.5 12.3
The addition of two numbers is 22.
Hope it helps!