简单 c语言编程题!!

[复制链接]
查看11 | 回复5 | 2013-3-27 13:10:43 | 显示全部楼层 |阅读模式
#include "stdio.h"void main(){
int a,b,c;
printf("Please input a,b,c:");
scanf("%d,%d,%d",&a,&b,&c);
switch(a)
{
case 1:
printf("b+c=%d\n",b+c);
break;
case 2:
printf("b-c...
回复

使用道具 举报

千问 | 2013-3-27 13:10:43 | 显示全部楼层
#include "stdio.h"int main(){ int a; double b,c,y; y=0; printf("输入a,b,c:"); scanf("%d %lf %lf",&a,&b,&c);switch(a){
case 1:
printf("%lf",b+c);
...
回复

使用道具 举报

千问 | 2013-3-27 13:10:43 | 显示全部楼层
#includevoid main(){int a,b,c;double d;printf("输入a,b,c");scanf("%d %d %d",&a,&b,&c);switch(a)case 1:d=b+c; break;case 2:d=b-c;break;case 3:d=b*c;break;...
回复

使用道具 举报

千问 | 2013-3-27 13:10:43 | 显示全部楼层
#include void main(){int a,b,c.;float sum;printf ("please enter three number:\n");scanf("%d,%d,%d",&a,&b,&c);switch (a){case 1:sum=b+c;case 2: sum=...
回复

使用道具 举报

千问 | 2013-3-27 13:10:43 | 显示全部楼层
#include#includeint main(){
int a, b, c;
printf("Input a, b, c: ");
scanf("%d%d%d", &a, &b, &c);
switch(a){
case 1: printf("...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行