fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("enter the no");
  5. int x;
  6. scanf("%d",&x);
  7. if(x<=5)
  8. goto square;
  9. else
  10. goto cube;
  11. square:
  12. printf("\nsauare is -%d",x*x);
  13. cube:
  14. printf("\ncube is -%d",x*x*x);
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 4396KB
stdin
4
stdout
enter the no
sauare is -16
cube is -64