Programming with M.Khan

Programming with M.Khan

Share

Pros:

It is a popular language, and thus, there are many compilers and libraries
Other programming languages like C, C#

01/02/2023

using namespace std;

double divisionby(int num1, int num2)
{
if (num2 == 0)
{
throw "Division by zero condition!";
}
cout n1 >> n2;
double n3 = 0;

//try catch to handle run time error
try
{
n3 = divisionby(n1, n2);
cout

01/02/2023

# include
using namespace std;
int main()
{
char operation;
float num1,num2;
cout > operation;
cout > num1 >> num2;
switch(operation) {
case '+':
cout

Want your business to be the top-listed Engineering Company in Islamabad?
Click here to claim your Sponsored Listing.

Telephone

Address


Alipur
Islamabad
34450