Computer Science, asked by silentkiller872, 5 hours ago

draw a flowchartto input a number. find its square if the entered number is multiple of 10. if the entered number is not a multiple of 10, then find its cube

Answers

Answered by dibyansuptnk
0

Answer:

#include<stdio.h>

void main()

{    

 

int a;  

 printf("Enter a number: ");    

scanf("%d", &a);  

 if(a%2==0)  

 {      

 printf("%d", a*a);  

  }  

 else

   {      

 printf("%d", a*a*a);  

 }

   getch();

}

Explanation:

Similar questions