将C语言转成流程图
答案:2 悬赏:60 手机版
解决时间 2021-04-08 07:11
- 提问者网友:椧運幽默
- 2021-04-07 17:25
将C语言转成流程图
最佳答案
- 五星知识达人网友:撞了怀
- 2021-04-07 18:15
//c程序
#include"stdio.h"
#include "ctype.h"
void main(void)
{int i,cnt=0;
int nyear,myear;
int oyear[8];
scanf("输入一个年份:%d",&nyear);
myear=nyear;
for(i=1;i<100;i++)
{myear+=i;
if((myear&0x3)==0)oyear[cnt++]=myear;
if(cnt==8)break;
}
printf(" The eight leap years following %d are:%d,%d,%d,%d,%d,%d,%d,%d",nyear,oyear[0],oyear[1],oyear[2],oyear[3],oyear[4],oyear[5],oyear[6],oyear[7]);
}
#include"stdio.h"
#include "ctype.h"
void main(void)
{int i,cnt=0;
int nyear,myear;
int oyear[8];
scanf("输入一个年份:%d",&nyear);
myear=nyear;
for(i=1;i<100;i++)
{myear+=i;
if((myear&0x3)==0)oyear[cnt++]=myear;
if(cnt==8)break;
}
printf(" The eight leap years following %d are:%d,%d,%d,%d,%d,%d,%d,%d",nyear,oyear[0],oyear[1],oyear[2],oyear[3],oyear[4],oyear[5],oyear[6],oyear[7]);
}
全部回答
- 1楼网友:纵马山川剑自提
- 2021-04-07 19:53
追问这么简单的么这么简单的么追答流程图写出过程就好了,实现了什么,进行了什么活动,有哪些判断,我是这么想的
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯