计算平方.c 142 B

123456789101112
  1. #include <stdio.h>
  2. int main() {
  3. int num,output;
  4. scanf("%d",&num);
  5. output = num*num;
  6. printf("%dX%d=%d",num,num,output);
  7. return 0;
  8. }