いろいろ注意
- arduinoでの予定は、未定
プログラム
オンラインコンパイラpaiza
#define D_NUM 2
#if D_NUM == 1
#define P_V 10
#endif
#if D_NUM == 2
#define P_V 100
#endif
#if D_NUM == 3
#define P_V 1000
#endif
#if D_NUM == 4
#define P_V 10000
#endif
#include <iostream>
using namespace std;
int main(void){
// Your code here!
printf("10 ^ %d = %d\n",D_NUM,P_V);
}
10 ^ 2 = 100