Skip to content

Commit

Permalink
added division ChicoState#2
Browse files Browse the repository at this point in the history
  • Loading branch information
DAC098 committed Sep 11, 2024
1 parent 14936c0 commit 24a0f57
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ int main(){
cout<< "Multiplication: "<< first << "*" << second << "=";
cout<< (first*second) << endl;

if (second == 0.0) {
std::cout << "Division: " << first << " / " << second << " = " << (first / second) << std::endl;
}

return 0;
}
}

0 comments on commit 24a0f57

Please sign in to comment.