2. WAP to input a number and then find its sovare and oube
Answers
Answered by
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
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
Math,
16 days ago
Social Sciences,
16 days ago
English,
16 days ago
Social Sciences,
1 month ago
Math,
1 month ago
English,
8 months ago
Hindi,
8 months ago