Write the algorithm to say wherher a number is positive
Answers
Answered by
0
Answer:
#include<stdio.h>
#include<conio.h>
int main()
{
int evenOdd;
printf("Enter a number:");
scanf("%i" , &evenOdd);
if(evenOdd%2==0)
printf("The number is even");
else
printf("The number is odd");
getch();
return 0;
}
Explanation:
Similar questions
World Languages,
4 days ago
Math,
4 days ago
English,
9 days ago
English,
9 days ago
English,
9 months ago
Social Sciences,
9 months ago