Computer Science, asked by patelleela437, 1 month ago


2. WAP to input a number and then find its sovare and oube​

Answers

Answered by anushanagtode
6

Answer:

include <stdio.h>

int main()

{

int no;

printf("Enter a number : ");

scanf("%d", &no);

printf("Square of %d is %d\n", no, (no * no));

printf("Cube of %d is %d\n", no, (no * no * no));

}

Answered by aj200260
1

Answer:

num=int(input("enter a number:"))

square=num*num

cube=num*num*num

print("the square of  ",num,"is",square)

print("the cube of ",num,"is",cube)

NOTE: The above program is for python

PLEASE MARK ME AS BRAINLIEST

THANK YOU!

Similar questions