怎样用C语言设计一个程序,输入A、B的值,将两个值交换后输出。

[复制链接]
查看11 | 回复3 | 2010-12-24 11:02:47 | 显示全部楼层 |阅读模式
#includevoid main(){ int a,b,t; scanf("d%,d%",&a,&b); if(a
回复

使用道具 举报

千问 | 2010-12-24 11:02:47 | 显示全部楼层
#include void mian(){int a,b,c;scanf("%d %d",&a,&b);c = a;a = b;b = c;printf("%d %d",a,b);}
回复

使用道具 举报

千问 | 2010-12-24 11:02:47 | 显示全部楼层
#include "stdio.h"void main(){int a,b; int temp=0; scanf("%d",&a);scanf("%d",&b);a=temp;temp=b;b=a;printf("%d,%d\n",a,b);}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行