题目:输入两个数,输出这两个数之间(包括两个数)所有不能被7
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/18 23:06:48
![题目:输入两个数,输出这两个数之间(包括两个数)所有不能被7](/uploads/image/f/7810696-64-6.jpg?t=%E9%A2%98%E7%9B%AE%3A%E8%BE%93%E5%85%A5%E4%B8%A4%E4%B8%AA%E6%95%B0%2C%E8%BE%93%E5%87%BA%E8%BF%99%E4%B8%A4%E4%B8%AA%E6%95%B0%E4%B9%8B%E9%97%B4%28%E5%8C%85%E6%8B%AC%E4%B8%A4%E4%B8%AA%E6%95%B0%29%E6%89%80%E6%9C%89%E4%B8%8D%E8%83%BD%E8%A2%AB7)
输入两个整数的比较:#inlucevoidmain(){inta,b;scanf("%d,%d",&a,&d);if(a>b)printf("%d",a);elseprintf("%d",b);}输入
#include"stdio.h"intmain(){inta,b,num;printf("输入一个两位数");scanf("%d",&num);a=num/10;b=num%10;printf("%
自己刚刚随便敲的,编译过了,没有问题.第一题:#includevoidmain(){inta,b;scanf("%d,%d",&a,&b);if(a>b)printf("%d\n",a);
#includevoidmach(intx,inty){printf("x²+y²=%d\n",(x*x+y*y));printf("x²-y²=%d\n",(
#includeintmain(intargc,char*argv[]){inti,a,b,sum=0,c;scanf("%d%d",&a,&b);if(a>b){c=a;a=b;b=a;}for(i
floata,b,sum,ver;puts("pleaseentertwonumber:");scanf("%f,%f",&a,&b);sum=a+b;ver=sum/2;printf("sum=%f
输入10个数,然后按照升序和降序输出?再问:是这样的,着10个数要从键盘输入例如:输入:1598122130-19输出:15998812212130-1-19再答:#includevoidmain()
额,这个问题是个很简单的问题,只有2个数字而已,只要一个比较就行了啊.#includevoidmain(){inta,b;scanf("%d%d",&a,&b)if(a
importjava.util.Scanner;publicclassTest{publicstaticvoidmain(String[]args){Scannerinput=newScanner(S
#includevoidmain(){inta1,a2;floate;scanf("%d%d",&a1,&a2);printf("%d+%d=%d\n",a1,a2,a1+a2);printf("%d
#includefloatplus(floatm,floatn){floatx;x=m*n;return(x);}voidmain(){floatm,n;printf("请输入求积数据(以空格键隔开)
if(aif(a>100)printf("a=%d\n",a/100);if(b>100)printf("b=%d\n",b/100);
intHCF(intx,inty)//定义最大公约数函数{inti,change;if(x>y)//保证x是最小数{change=y;x=change;y=x;}for(i=x;i>=1;i--)if
clearinputtoainputtobifa>b?aelse?bendifcancel
PrivateSubCommand1_Click()a=InputBox("请输入数字","提示")b=InputBox("请输入数字","提示")Print"和:"&Val(a)+Val(b)Pri
#include"iostream.h"voidmain(){doublea,b,c;cin>>a>>b;if(a再问:有些都看不懂耶再答:C++看不懂吗?可以我企鹅2。5。7。720。216。9
#includevoidmain(){floata=0,b=0,c=0;chard;printf("输入两个数:\n");scanf("%f%f",&a,&b);getchar();printf("选
#includeintmain(){inta,b,i,c,d,m,n;scanf("%d%d",&m,&n);for(i=m;i>=1;i--){a=m%i;b=n%i;if(a==0&&b==0){
#include#include#includeusingnamespacestd;intmax(inta,intb,intc){returna>b?a>c?a:c:b>c?b:c;}intmain(
#includemain(){inti,j,cnt=0;scanf("%d''"%d",&m,&n);if(m>n){temp=m;m=n;n=temp;}for(i=m;i