![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言程序设计课后习题
secret_lee
这个作者很懒,什么都没留下…
展开
-
编写一个程序,打印输入中单词长度的直方图。
这道题是C程序语言设计中的练习1-13.只是基本实现,若有错误或更优秀的方法,欢迎指正,谢谢。习题1-14类似,依次小改即可。#include <stdio.h>main(){ int i; int c; int num = 0; int a = 0;//字母个数 int b[10];//数字个数 int d = 0;//空格个数...原创 2018-04-20 19:26:45 · 862 阅读 · 0 评论 -
练习1-15使用函数实现温度转换
这道题是C程序语言设计中的练习1-15.只是基本实现,若有错误或更优秀的方法,欢迎指正,谢谢。#include <stdio.h>//当fahr = 0,20,..., 300时,分别打印华氏温度与摄氏温度对照表int celsius(float a, int b, int c);main(){ float fahr; int lower, upper; ...原创 2018-04-21 10:44:09 · 2812 阅读 · 0 评论