Computer Science, asked by shilpajain18, 1 year ago

write a program to enter a number and print if the number is even then calculate square other cube​

Answers

Answered by dikshant378
2

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int a, cube;

cout<<"enter the no.";

cin>>a;

if(i%2=0)

cube=a*a*a;

cout<<cube of the no. is"<<cube;

else

cout<<"";

getch();

}

Similar questions