首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >C++新手问题?

C++新手问题?

提问于 2020-11-30 21:03:31
回答 0关注 0查看 110

Activity 14

Fraction Sum

Create a struct to hold a fraction. The struct should have an integer numerator and an integer denominator member. Declare 2 fraction variables and read them in from the user. Write a function called multiply that takes both fractions, multiplies them together, and prints the result out as a decimal number. You do not need to reduce the fraction to its lowest terms.

活动14

小数总和

创建一个保存分数的结构。该结构应具有整数分子和整数分母成员。声明2个分数变量,并从用户中读取它们。编写一个名为乘法的函数,该函数将两个分数相乘,并将它们相乘,然后将结果打印为十进制数。您无需将分数降低到最低限度。

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档