题解 3000: 交换值

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

题解 3000: 交换值

摘要:解题思路:简单一点注意事项:参考代码:     int a,b;    scanf("%d %d",&a,&b);    printf("%d %d",b,a);        return 0;……

交换值(投机取巧的做法)

摘要:解题思路:直接在输出的时候先输出b,再输出a,也算是一种交换。注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d %d",&……

不用指针,简单写法

摘要:解题思路:一看就懂!注意事项:参考代码:#include <stdio.h>int main(){ int a, b; int c = 0; scanf_s("%d %d", &a, &b); c =……

交换值给个好评

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){   int a,b;   cin>>a>>b;   cout<<b<<……

编写题解 3000: 交换值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a , b,c;    scanf("%d %d",&a,&b);    c=a;    a=b;……

题目 3000: 交换值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a = 0; int b = 0; int c = 0; scanf("%d %d", &a, &b);……

交换值(超简单)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d",&a,&b);    printf("%d %d",b,……

基础入门)交换值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d",&a,&b);    printf("%d %d",b,……