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
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
Accountancy,
3 hours ago
Biology,
3 hours ago
Math,
5 hours ago
Chemistry,
5 hours ago
History,
8 months ago
Computer Science,
8 months ago
English,
8 months ago