Computer Science, asked by seemaparwal1, 19 days ago

Can anyone tell Write a program for Calculate and Clear button to find out the square and cube of a given number.

Attachments:

Answers

Answered by vaibhavdhanorkar960
1

Answer:

#include <stdio.h>

int main()

{

int inp, sqr, cube;

printf("Enter a number:");

scanf("%d", &inp);

sqr = inp* inp;

cube inp* inp * inp; =

printf("The square of %d is %d\n", inp,

sqr);

printf("The cube of %d is %d \n", inp, cube);

return 0;

}

Similar questions