You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
322 B

#include "division.h"
int divisionInt(int a, int b) {
if (b != 0) {
return a / b;
}
else {
return 0;
}
}
double divisionDouble(double a, double b) {
if (b != 0) {
return a / b;
}
else {
return 0;
}
}
int divisionByTwo(int a, int b) {
return a >> b;
}