Tuesday 7 July 2020

Sum Divide Multiplication Subtraction Codes IN C++

Sum Divide Multiplication Subtraction Codes IN C++

Code:
#include <iostream>

using namespace std;

  int  main()
  {
 
  int num1,num2;
  cout<<"Enter the number 1"<<num1;
  cin>>num1;
  cout<<" Enter the number 2"<<num2;
  cin>>num2;
  cout<<"the sum is"<<num1+num2;
  cout<<"multiplication is"<<num1*num2;
  cout<<"Divide is"<<num1/num2;
cout<<"Minus is"<<num1-num2;
 
 
  return 0;
 

  }

No comments:

Post a Comment