int num = 65;
int i = 1;
void setup()
{
Serial.begin(9600);
while (!Serial);
}
void loop()
{
Serial.write(num);
Serial.print("\t");
Serial.print(num);
Serial.print("\t");
Serial.print(num, BIN);
Serial.print("\t");
Serial.print(num, OCT);
Serial.print("\t");
Serial.println(num, HEX);
Serial.print(i);
Serial.print("*");
Serial.print(i);
Serial.print("=");
Serial.print(i * i);
Serial.print("\n\n");
delay(1000);
num++;
i++;
}
沒有留言:
張貼留言