输出内容:*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
#include "stdio.h"main(){ int i,j;for(i=0;i<5;i++){ for(j=5;j>i;j--) printf("*+"); printf("\n");}getch();}
#include<stdio.h>#include<time.h>main(){int h,b,k,i;h=0;b=0;for (i=0;i<500;i++){ k=rand()%7+1; if(k<=3) h++; else b++; } printf("hongqiuyou%d\n",h); printf("baiqiuyou%d\n",b); getch();}
#include "stdio.h"int xxx(int b){int x=b%2,y=b/2;if(b!=0){ x=x+xxx(y)*10; return x;}}main(){int a,c;scanf("%d",&c);a=xxx(c);printf("%d",a);getch();}