Computer Science, asked by rahulmali57761, 1 year ago

Write a program with a division method which receives two integer numbers and performs the division operation. The method should declare that it throws arithmeticexception. This exception should be handled in the main method.

Answers

Answered by eswarvts
1

C program for Division

#include<stdio.h>

main( )

{

int a,b,c;

clrscr( );

printf("\n Enter first value :");

scanf("%d",&a);

printf("\n Enter second value :");

scanf("%d",&b);

{

c=a/b;

printf("\n Your Remainder is %d",c);

}

getch( );

}

Output...

Enter first value :10

Enter second value :5

Your Remainder is 2

I hope it will helps you...

Please mark me as Brainliest.....

@eswarvts

Similar questions