Write a C program with 4 functions in main
1 int intSum(intx, int y)
accept 2 ints as parameters
adds the 2 # up
returns the sum
2. int intdiff(intx, inty)
accepts 2 # as param.
subtracts them
returns with diff.
3 int intProd(intx, int y)
accepts 2 #
muiltplies them
returns product
4 double Quot(int x, int Y)
accepts 2 #
divides them
returns quot/ with remainer as decimel.
should spit out
the sum of the 2 mnumbers is
the difference of 2 numbers is
the product of 2 numbers is
the quotient of 2 numbers is
Francis Waldron 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Dani 4,310 The Queen of DaniWeb Administrator Featured Poster Premium Member
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.