输入金额输出红包编程
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 11:39:04
#includevoidmain(){charx[100];inti;printf("请输入英语句子\n");gets(x);x[0]=x[0]-32;for(i=1;x[i]!='\0';i++){
#includevoidmain(){intx,a,b,c;scanf("%d",&x);a=x/100;b=x/10%10;c=x%10;x=c*100+b*10+a;printf("%d",x);
将浮点数先转换为整形数,得到整数部分,再将该实数乘以几百倍,该数减去整数部分得到小数.
#includevoidmain(){inta,b,c;intd,e,f,sum;printf("请输入三个整数:\n");scanf("%d,%d,%d",&a,&b,&c);//分号放错位置了su
#include#includemain(){floatx,y;while(1){printf("请输入x=");scanf("%f",&x);if(x>=-5&&x
charch;scanf("%c",&ch);printf("%c\n",ch+1);
#includevoidmain(){intn,m,a,b,c;scanf("%d",&n);a=n/100;b=(n/10)%10;c=n%10;m=c*100+b*10+a;printf("输出:
//C语言编程,输入10个数字计算平均数,并输出大于平均数的元素//作者:yubaolin//日期:20120402//功能:C语言编程,输入10个数字计算平均数,并输出大于平均数的元素#includ
#includeintmain(){inta,b,c,t;printf("输入a,b,c\n");scanf("%d%d%d",&a,&b,&c);t=a;if(b>t)t=b;if(c>t)t=c;
importjava.util.*;publicclassTest40014{publicstaticvoidmain(String[]args){Scannerin=newScanner(Syst
给你个c语言的,#includeintmain(){longinta,b,c,t;printf("输入数据\n");scanf("%d%d%d",&a,&b,&c);if(a>b){t=a;a=b;b
给你一个输出来是正的正三角行图案:/*输出一个正的正三角行图形*/#includevoidmain(){inti,j,x,n,count,k,m,q,p,v;scanf(“%d%d”,&n,&x);c
char*s[12]={"Jan.","Feb.","Mar.","Apr.","May.","Jun.","Jul.","Aug.","Sep.","Oct.","Nov.","Dec."};int
n=1sum=0dowhiln
a=XXb=YYc=MMifa>bthenmax=aelsemax=bendififc>maxthenmax=cendif
#includevoidmain(){\x09intyear;\x09printf("请输入年份:");\x09scanf("%d",&year);\x09if((year%4==0&&year/10
Subtest()DimNumAsLong,Arr(1To5)Forn=1ToUBound(Arr)Num=Application.InputBox("请输入第:"&n&"个数字:","数字输入窗口"
#includevoidexchange(int*a,int*b){intt=*a;*a=*b;*b=t;}intmain(){intx,y,z,t;scanf("%d%d%d",&x,&y
很基础的,楼主要好好学习啊#include#includevoidmain(){inti;scanf("%d",&i);for(intj=1;j