Skip to content

Opening book details…

About this document

C Program for All Arithmetic Ops by Shanmuk_Ch is a document available to read on EtoBox.

The document describes a C program that takes in two numbers as input and calculates the sum, difference, product, quotient, and modulus of the two numbers. It includes sample input and output. The program first prompts the user to input two integers, then performs the five arithmetic operations on those numbers and prints out the results. To avoid integer division, it casts one of the numbers to a float before calculating the quotient.

Author
Shanmuk_Ch
Language
EN