Computer Science, asked by manik6372, 9 days ago

Write the algorithm to say wherher a number is positive

Answers

Answered by samarthkrv
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