摘要:
#include<stdio.h>/*基本输入输出题(一)题目描述;计算a+b输入包括两个正整数a,b(1<a,b<=10^9),输入数据包括多组。输出a+b的结果输入1 510 20输出630 */int main(){ int a,b; while(scanf("%d%d",&a,&b)){ p 阅读全文
posted @ 2022-01-19 18:21
城北徐公135
阅读(147)
评论(0)
推荐(0)
摘要:
#include<stdio.h>#include"D:\39.h"int main(){ for(int j=1;j<=4;j++){ for(int i=1;i<=5;i++){ printf("%5d",i*j); } // printf("\n"); putchar('\n'); } ret 阅读全文
posted @ 2022-01-19 12:35
城北徐公135
阅读(104)
评论(0)
推荐(0)
摘要:
#include<stdio.h>#include"D:\39.h"int main(){ for(int i=1;i<=100;i++){#if 0 if(i%3==0) continue; printf("%d\n",i);#else if(i%3!=0) printf("%d\n",i);#e 阅读全文
posted @ 2022-01-19 12:21
城北徐公135
阅读(39)
评论(0)
推荐(0)
摘要:
#include<stdio.h>#include"D:\39.h"int main(){ int a,sum=0; for(int i=1;i<=10;i++){ scanf("%d",&a); sum+=a; if(sum>=1000) break; } printf("总的捐款数为%d\n", 阅读全文
posted @ 2022-01-19 12:12
城北徐公135
阅读(40)
评论(0)
推荐(0)
摘要:
#include<stdio.h>#include"D:\39.h"int main(){ int i=1,s=1,sum=0; do{ s*=i; sum+=s; ++i; }while(i<=5); printf("%d\n",sum); return 0;} 阅读全文
posted @ 2022-01-19 12:00
城北徐公135
阅读(259)
评论(0)
推荐(0)
摘要:
#include<stdio.h>#include"D:\39.h"int main(){ int d,a,b,c; scanf("%d%d%d",&a,&b,&c); if(a>b){ d=a; a=b; b=d; } if(a>c){ d=a; a=c; c=d; } if(b>c){ d=b; 阅读全文
posted @ 2022-01-19 11:48
城北徐公135
阅读(40)
评论(0)
推荐(0)
摘要:
头文件 #define PI 3.1415int E = 123;int max(int x,int y){ if(x>y) return x; else return y;} 引用头文件 #include<stdio.h>#include"D:\39.h"int main(){ printf("% 阅读全文
posted @ 2022-01-19 11:33
城北徐公135
阅读(49)
评论(0)
推荐(0)
浙公网安备 33010602011771号