C语言:鸡兔同笼问题 2015年11月18日 C语言 Leave a comment 鸡兔同笼。已知鸡兔总头数为h(设为30),总脚数为f(设为90),求鸡兔各几只。 代码一: #include& ... ...
C语言:输入一个字符,输出ASCII码比它大5的字符 2015年11月17日 C语言 Leave a comment #include<stdio.h> int main() { printf("请输入一个字符:"); c ... ...
C语言:输入圆半径r和圆柱高h,求圆周长、圆面积、圆球体积和圆柱体积 2015年11月7日 C语言 3 Comments #include <stdio.h> #define PI (3.1415926) // 定义圆周率PI ... ...
C语言:将China译成Glmre 2015年11月7日 C语言 Leave a comment #include <iostream> using namespace std; int main() ... ...
C语言:求一个三位数的个位、十位、百位 2015年11月6日 C语言 Leave a comment 题目:对于给定的一个三位数n,由前面的学习知道,n%10是这个三位数的个位,n/10%10是这个三位数的十位, ... ...