fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int n=2;
  6. printf("A^%d\n",n);//like this??
  7. printf("A^2\n");//or like this??
  8. return 0;
  9. }
Success #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
A^2
A^2