摘要:
include <stdio.h> main() { int i,j,n=0,a[17][17]={0}; while(n<1 || n>16) { printf("请输入杨辉三角形的行数:"); scanf("%d",&n); } for(i=0;i<n;i++) a[i][0]=1; /*第一列 阅读全文
posted @ 2019-05-21 09:42
杨小伟啊
阅读(276)
评论(0)
推荐(0)
摘要:
#include<stdio.h> int main(void) { int a,b,c; char flag; scanf("%d %c %d",&a,&flag,&b); switch(flag) { case '+':c = a + b;break; case '-':c = a - b; b 阅读全文
posted @ 2019-05-21 09:05
杨小伟啊
阅读(133)
评论(0)
推荐(0)

浙公网安备 33010602011771号