fork download
  1. #include <stdio.h>
  2.  
  3. void square(int n) {
  4. int result = n * n;
  5. printf("%d", result);
  6. }
  7.  
  8. int main() {
  9. int n = 10;
  10. square(n);
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
100