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
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
Math,
6 months ago
English,
6 months ago
Physics,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago