例题2.3

Posted on 2017-09-21 09:19  dragonliu欧美  阅读(75)  评论(0编辑  收藏  举报
 1 #include<iostream>
 2 using namespace std;
 3 #define price 40 
 4 int main() {
 5    int num,total;
 6    num=10;
 7    total=num*price;
 8    cout<<"total="<<total<<endl;
 9    return 0; 
10 }