CODE:
#include<iostream>
using namespace std;
int main(){
int a,b,c;
cout<<"Division of 2 Numbers\n";
cout<<"Enter the value of A: ";
cin>>a;
cout<<"Enter the value of B: ";
cin>>b;
if(b==0){
cout<<"Divison by zero is illegal in math!\n";
return 0;
}
else{
c=a/b;
cout<<"Answer is : "<<c<<endl;
}
return 0;
}
No comments:
Post a Comment
Plz don't enter any spam link in the comment box!