大连东软信息学院c语言重修,大连东软信息学院大一上 电子工程 c语言-作业_第2次,第四周...

1. Given a=5,b=1,x=10,and y=5,create a program that outputs the result of the formula

f=(a-b)(x-y using a single printf()

1-148-png_6_0_0_166_188_591_166_892.979_1262.879-525-0-0-525.jpg

1-22-png_6_0_0_166_376_426_25_892.979_1262.879-379-0-153-379.jpg

function

2. Create a program that uses the same formula above to output the result;this

time,however,prompt the user for the values a,b,x andy,Use appropriate variable names and naming

1-202-png_6_0_0_166_509_563_227_892.979_1262.879-500-0-180-500.jpg

1-48-png_6_0_0_166_747_429_54_892.979_1262.879-381-0-387-381.jpg

conventions

3.

4. Creat a program that prompt a user for numbers and determines total revenue using the

following formula:Total Revenue=Price*Quaritity

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值