poj1004
来源:互联网 发布:淘宝打折后还显示原价 编辑:程序博客网 时间:2024/06/05 19:39
题目大意:
给12个数,计算12个数的平均值
解题思路:
无
代码如下:
#include<stdio.h>#include<string.h>#include<math.h>#include<stdlib.h>int main(){ double x; int i; double sum=0; for(i=1;i<=12;i++) { scanf("%lf",&x); sum=sum+x; } sum=sum/12.0; printf("$%.2f\n",sum); return 0;}
0 0
- POJ1004
- poj1004
- poj1004
- poj1004
- POJ1004
- POJ1004
- poj1004
- POJ1004
- poj1004
- POJ1004
- poj1004
- POJ1004
- POJ1004
- poj1004
- poj1004
- Poj1004
- poj1004
- poj1004
- (转)C# Enum,Int,String的互相转换 枚举转换
- thinkphp核心源码注释|Route.class.php
- MySQL主从配置
- ubuntu windows7 双系统的 grub.conf
- 自定义view实战笔记--视差特效
- poj1004
- 【Java】简单递归
- java在数字前面自动补零的方法
- JDBC和结果集的操作
- javaee导测(ssh框架)分页 mysql数据库(带条件查询)
- 朴素贝叶斯
- 《Python爬虫学习系列教程》学习笔记
- Ubuntu 启动进入命令行模式
- tensorflow学习笔记(一)