![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
程序
文章平均质量分 58
aihenaichadeyun
这个作者很懒,什么都没留下…
展开
-
程序
1、编写一个程序,输出如下所示的乘法列表。 i*j 1 2 3 4 5 6 7 8 9------------------------------------------------------------ 1| 1 2 3 4 5 6 7 8原创 2017-01-21 15:03:19 · 167 阅读 · 0 评论 -
程序
输入一个数,判断是否为素数。#include #include int main(){int num; int t=2;printf("Please input a number:\n");while(scanf("%d",&num)==1){ float m=sqrt(num); if(num printf(原创 2017-01-19 20:26:18 · 174 阅读 · 0 评论 -
C的几个简单程序
编程题目1、100以内能被5或7整除的数,每行五个数的显示出来。#include int main(){ int m=1;int total=0;while(m{ if(m%5==0||m%7==0){printf("%6d ",m); total++;if(total%5==0原创 2017-01-18 19:32:33 · 289 阅读 · 0 评论 -
一个统计字数的程序
下面程序统计字符、单词和行#include#include //为isspace( )提供函数原型#include //为bool、true和false提供定义#define STOP '|'int main (void){ char c; char prev; long n_chars=0l;原创 2017-01-07 14:58:15 · 1484 阅读 · 0 评论