A simple program that will ask the user to give two numbers and then the program computes the sum and quotient of the two given numbers using a C++ programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg


Want to support my channel?

GCash Account

Jake Pomperada






Thank you very much for your support.

Program Listing

#include <iostream>

int main()
  double val1, val2;

  std::cout << std::endl <<std::endl; 
  std::cout <<"\tAdd and Divide Two Numbers in C++";
  std::cout << std::endl <<std::endl; ; 
  std::cout << "\tGive Two Numbers : ";
  std::cin >> val1 >> val2;

  std::cout << std::endl; 
  std::cout <<std::endl; 
  // addition of two numbers
  std::cout <<"\t" <<val1 << "+" << val2 << " = "<< val1+val2 
  << std::endl << std::endl;

   // division of two numbers
  std::cout <<"\t" << val1 << "/" << val2 << " = "<<val1/val2 << std::endl;
  std::cout << std::endl<<std::endl; 
  std::cout <<"\tEnd of Program";
  std::cout << std::endl; 
  return 0;

Leave a Reply

Your email address will not be published.