fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int i;
  5. printf("enter the number:");
  6. scanf("%d",&i);
  7. if(i>=5)
  8. {
  9. goto cube;
  10. }
  11. else
  12. {
  13. goto square;
  14. }
  15. cube:
  16. printf("the cube of the number is %d",i*i*i);
  17. square:
  18. printf("the cube of the number is %d", i*i);
  19.  
  20. return 0;
  21.  
  22.  
  23. }
Success #stdin #stdout 0s 4360KB
stdin
3
stdout
enter the number:the cube of the number is 9