c语言高手请进

news/2024/5/19 0:22:53
修改一下:scanf("%d" a[3]);for(int i=0 ; i<4 ; i++){ a[i]=(a[i]+9)%10;}for(int i=0 ; i<2 ; i++){ temp = a[i]; a[i]=a[i+2]; a[i+2]=temp;}for(int i=0 ; i<4 ; i++){ printf("%d" a[2]);scanf("%d" a[1]);scanf("%d" a[0]);scanf("%d" void main(){int a[4];scanf("%d" four); sleep(10);} &four); a4=((four%1000)+9)%10; a3=((four-(four%1000*1000)%100)+9)%10; a2=((four-(four%1000*1000)-(four%100*100)%10)+9)%10; a1=((four-(four%1000*1000)-(four%100*100)-(four%10*10))+9)%10; temp=a4; a4=a2; a2=temp; temp=a3; a3=a1; a1=temp; four=a4*1000+a3*100+a2*10+a1; printf("/n%d/n" temp; scanf("%d" a4 a3 a2 a1 &a[i++])); ||| main(){ int four a[3]);改为for(int i=0; i<4 ; scanf("%d" a[2]);scanf("%d" a[1]);scanf("%d" a[0]);scanf("%d" a[i]);}} 答案补充 不好意思

http://www.niftyadmin.cn/n/4557999.html

相关文章

Date类和SimpleDateFormat类

Date类 * Date方法 *  getTime() 返回自 1970 年 1 月 1 日 00:00:00 GMT 以来此 Date 对象表示的毫秒数。 * setTime(long time) 设置此 Date 对象&#xff0c;以表示 1970 年 1 月 1 日 00:00:00 GMT 以后 time 毫秒的时间点。 * System方法 * curren…

c语言编程怎么学

一开始你会觉得编程很有意思 我建议你用 Turbo C 2.0.简单 你就必须得在你的电脑上装一个编程的工具 说到上机操作 弄明白之后自己再上机验证一下 教材上的习题你必须都要弄明白 那就是研究别人的代码 切忌懒惰 你杀了我 包括所有主流编程语言http://www.jtr.cn/不满意 不会的再…

Java中的静态代理实现方式

1、编写一个接口类 如&#xff1a;Subject 1 package com.neusoft.pattern.staticProxy;2 3 /**4 * <p>Title:</p>5 * <p>Description:代理接口对象</p>6 * <p>Copyright:Copyright (c) 2018</p>7 * <p>Company:东软集团股份有限…

C语言编程 用任何一种熟悉的方法描述求3个数中最小数的算法

d:c;printf("max%d/n" d c5 b6 tmp);} ||| #include<stdio.h>void main(){int a3 tmp; if (a<b) tmp a; else tmp b; if (tmp > c) tmp c; printf("%d/n" c4 b 2 直到 比完 肯定就是 最小的 被拽出来了 ||| #include <stdio.h>void …

linux---redis php扩展安装

阿里云centos6.9下 redis php扩展安装 下载phprediswget http://pecl.php.net/get/redis-3.1.0.tgz 或 wget https://github.com/nicolasff/phpredis/archive/3.1.0.tar.gz 解压安装包并进入解压后目录tar xzf redis-3.1.0.tgz cd redis-3.1.0 在当前目录下生成configure配置文…

免费的思维导图工具

知犀思维导图 https://www.zhixi.com/

ojective-C学习笔记(6)继承

在学习的上一个小程序中&#xff0c;有几个类的接口和实现都非常的相似&#xff0c;我是通过复制粘贴的方式来编写的。 可以使用继承来减少重复的代码。只有代码少了&#xff0c;bug才无处藏身。 OC是单一继承&#xff0c;可以使用OC的其他特性来达到多继承的效果&#xff0c;这…