C/C++の宿題を片付けます 100
at TECH
305:デフォルトの名無しさん
07/11/27 15:40:23
>>304
ついでにいろいろ修正した。
#include <stdio.h>
#include <stdlib.h>
#ifdef ZEI
# define a ZEI
#else
# define a 5
#endif
#define TAX(x,y) (x+y)*a/100
#define PRICE(x,y) (x+y)+(x+y)*a/100
int main(void)
{
int x,y;
printf("lnput an integer x:");
scanf("%d",&x);
printf("lnput an integer y:");
scanf("%d",&y);
#ifdef DEBUG
printf("tax of x+y %d \n", TAX(x,y));
#endif
printf("price of x+y %d \n", PRICE(x,y));
return 0;
}
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5315日前に更新/123 KB
担当:undef