这个程序怎麽写???

[复制链接]
查看11 | 回复4 | 2006-4-8 09:43:06 | 显示全部楼层 |阅读模式
#includevoid main(){int a=1,b=2,c;c=a+b;printf("%d",c);}
回复

使用道具 举报

千问 | 2006-4-8 09:43:06 | 显示全部楼层
a=1b=2c=a+bprint "c=",cbasic语言可以这样!
回复

使用道具 举报

千问 | 2006-4-8 09:43:06 | 显示全部楼层
public class Test{public static void main(String[] args){
int a=1;
int b=2;
int c=a+b;
System.out.println("c=" + c);}}JAVA可以这样!
回复

使用道具 举报

千问 | 2006-4-8 09:43:06 | 显示全部楼层
用C++是这样写的#includevoid main(){ int a=1,b=2,c; c=a+b; cout<<"c=a+b"<<endl; cout<<"c="<<c<<endl;}
回复

使用道具 举报

千问 | 2006-4-8 09:43:06 | 显示全部楼层
这很容易的就是上面的那些你要用什么语言写?
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行