两个数组解决,格式清晰,简单明了
摘要:第一个数组price[10]存放每本书的单价,即价格表,
第二个数组num[10]存放每本书的数量,
sum(初始化为0)存放总价。
在计算总价时,可以用循环来计算每一类数的价格并加到sum中,……
******************************计算书费******************************
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std; double a[10]= { 28.9,32.7,45.6,78,35,86……
计算书费feifeifei
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;double a[10]= {28.9,32.7,45.6,78,35,86.2,……
计算书费(C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,arr[10]; double ch[10]={28.9,32.7,45.6,78,35,86.……
计算书费(C语言代码)
摘要:```c
#include
int main()
{
int a[10]={};//定义数组并初始化
for(int i=0;i……
编写题解 2835: 计算书费
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ float q,w,e,r,t,y,u,i,o,p; ci……