Saturday, April 24, 2021

simple program without using exception handling (OOP) (77)

#include<iostream>

using namespace std;

int main()

{

int a=10,b=0;

cout<<"the first number is:"<<a<<endl;

cout<<"the second number is:"<<b<<endl;

int x=a/b;

cout<<"x= "<<x<<endl;

} 

No comments:

Post a Comment