



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Bahria university OOP Assignment 1
Typology: Assignments
1 / 7
This page cannot be seen from the preview
Don't miss anything!




#include
#include
cout<<"Enter First Value="; cin>>x; cout<<"Enter Second Value="; cin>>y; cout<<"The sum of "<<x<<" and "<<y<<" is = "<<sum(x,y)<<endl; cout<<"The sub of "<<x<<" and "<<y<<" is = "<<sub(x,y)<<endl; cout<<"The mul of "<<x<<" and "<<y<<" is = "<<mul(x,y)<<endl; cout<<"The div of "<<x<<" and "<<y<<" is = "<<div(x,y)<<endl; return 0; } int sum(int a,int b) { return (a+b); } int sub(int a,int b) { return (a-b); } int mul(int a,int b) { return (a*b); } int div(int a,int b) { return (a/b); }
#include