{"size": 544, "ext": "js", "max_stars_repo_path": "src/14_division.js", "max_stars_repo_name": "DeveloperBreakfast/fundamentals", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/14_division.js", "max_issues_repo_name": "DeveloperBreakfast/fundamentals", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/14_division.js", "max_forks_repo_name": "DeveloperBreakfast/fundamentals", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.6315789474, "max_line_length": 45, "alphanum_fraction": 0.6507352941}
import { input } from './utils/input.js';
let dividendo = await input('Dividendo: ');
let divisor = await input('Divisor: ');

dividendo = parseInt(dividendo, 10);
divisor = parseInt(divisor, 10);

const cociente = dividendo / divisor;
const resto = dividendo % divisor;

if (resto === 0){
    console.log('La división es exacta.');
    console.log('Cociente: ' + cociente);
    console.log('Resto: ' + resto)
} else {
    console.log('La division no es exacta.');
    console.log('Cociente: ' + cociente);
    console.log('Resto: ' + resto);
}