#yyds干货盘点# 牛客网基础编程题 7 - 9
#include<stdio.h>
int main()
{
//使用ret保存printf的返回值
int ret = printf("Hello world!");
printf("\n");
printf("%d\n", ret);
return 0;
}
#include<stdio.h>
int main()
{
int arr = { 0 };
int i = 0;
int b = 0;
for (i = 0; i < 3; i++)
{
scanf("%d", &arr);
}
printf("score1=%d,score2=%d,score3=%d", arr, arr, arr);
}
#include<stdio.h>
int main()
{
int xuehao;
float C = 0;
float shuxue = 0;
float yingyu = 0;
scanf("%d;%f,%f,%f", &xuehao,&C,&shuxue,&yingyu);
printf("The each subject score ofNo. %d is %.2f, %.2f, %.2f.\n",xuehao,C,shuxue,yingyu);
return 0;
}
</div>
<div id="asideoffset"></div>
https://blog.51cto.com/u_15460718/4810936
页:
[1]