Computer Science, asked by aryansingh05032010, 1 month ago

2.Write a program to input the any tow numbers and print the sum and product of their last digits in different lines using single cout statement. C++​

Answers

Answered by JaTIn5549
0

Answer:

C++ Code :

#include <iostream>

using namespace std;

int main()

{

cout << "\n\n Print the sum of two numbers :\n";

cout << "-----------------------------------\n";

int a;

int b;

int sum;

a=29;

b=30;

sum=a+b;

cout << " The sum of "<< a << " and "<<b <<" is : "<< sum <<"\n\n" ;

}

Similar questions