- 博客(2)
- 收藏
- 关注
原创 假设今年的工业产值为100万元,产值增长率为每年c%,请编程计算当c分别为6、8、10、12时工业产值分别过多少年可实现翻一番(即增加一倍)
假设今年的工业产值为100万元,产值增长率为每年c%,请编程计算当c分别为6、8、10、12时工业产值分别过多少年可实现翻一番(即增加一倍)。输入格式:无输出格式:"When grow rate is %d, the output can be doubled after %d years.\n"#include <stdio.h>#define CURRENT 100#define N 4main(){ int i; int y.
2022-03-17 10:36:21 2402
原创 写一个函数,输入一行字符(字符串长度<=80),单词之间可以以空格作为分隔符,将此字符串中最长的单词输出,字符串中出现的非英文字符不统计不输出。程序运行示例1:输入一行文本:
#include <stdio.h>int alphabetic(char c) //2{ if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) //2 { return 1; //1 } else { return .
2022-03-17 10:34:35 1687
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人