{"id":5913,"date":"2022-04-12T23:05:00","date_gmt":"2022-04-12T17:35:00","guid":{"rendered":"https:\/\/www.codingbroz.com\/?p=5913"},"modified":"2022-04-12T14:38:30","modified_gmt":"2022-04-12T09:08:30","slug":"cpp-program-to-subtract-two-numbers","status":"publish","type":"post","link":"https:\/\/www.codingbroz.com\/cpp-program-to-subtract-two-numbers\/","title":{"rendered":"C++ Program to Subtract Two Numbers"},"content":{"rendered":"\n

In this post, we will learn how to subtract two numbers using the C++<\/strong> Programming language.<\/p>\n\n\n\n

The below program asks the user to enter two numbers, after that it performs the subtraction using the minus (-) <\/strong>operator and stores the result in a third variable.<\/p>\n\n\n\n

Then, it prints the result on the screen using the cout<\/strong> statement.<\/p>\n\n\n\n

So, without further ado, let\u2019s begin this tutorial.<\/p>\n\n\n\n

\n