fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x=5;
  5. printf ("Enter a number");
  6. scanf("%d",&x);
  7. printf("square of %d is %d", x,x*x);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Enter a numbersquare of 5 is 25