write a program to enter a number and print if the number is even then calculate square other cube
Answers
Answered by
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