码迷,mamicode.com
首页 > 编程语言 > 详细

Problem T: 零起点学算法15——交换变量

时间:2018-09-28 20:54:10      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:算法   scanf   style   main   class   clu   scan   code   include   

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d",&a,&b);
    c=a;
    a=b;
    b=c;
    printf("%d %d",a,b);
    return 0;
}

 

Problem T: 零起点学算法15——交换变量

标签:算法   scanf   style   main   class   clu   scan   code   include   

原文地址:https://www.cnblogs.com/chenlong991223/p/9720399.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!