mayank_01

    0

    1

    mayank-sahu-coder

    The above code is a simple program that prints the cube of a number entered by the user.

    Shortcut: cube1

    #include <stdio.h>
    int main()
    {
      int num;
      printf("enter any number  = ");
      scanf("%d", &num);
      printf("cube of %d  is %d\n", num, num * num * num);
      return 0;
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.