ChicoState / ChicoState/MyFirstExample

Handle NaN errors

Open
#61 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
0
Forks
418
Avg merge
13h 31m
Merged PRs (30d)
1

Description

# Problem Description

A bug occurs when the second number entered by the user is zero because a divide-by-zero error.

# Desired Behavior

When a user enters zero (`0`) as the second number, show all the *other* operations as usual. However, instead of calculating and displaying the quotient for division, display the message: `Dividing by zero is not a number.`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.