180610[C语言第一天]

论坛 期权论坛 脚本     
匿名技术用户   2020-12-21 22:07   32   0

每天写点什么

第一个:

#include<stdio.h>
int main(void)
{
int a = 3020;
int b = 350;
printf("There were %d words and %d lines\n",a,b);
return 0;
}
第二个
#include<stdio.h>
int main(void)
{
char name[10];
char address[50];
int year,days;
int static X = 365;

scanf("%s%s%d",&name,&address,&year);
days=year*X;

printf("Your name is %s\n",name);
printf("Your address is %s\n",address);
printf("Your days is %d\n",days);
return 0;
}

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP