diff --git a/code/OddEven.c b/code/OddEven.c index bcf2849e..296a3be4 100644 --- a/code/OddEven.c +++ b/code/OddEven.c @@ -1,19 +1,13 @@ #include void main() { - int a; - printf("Enter a Number:"); scanf("%d",&a); - + if(a%2==0) - printf("The Entered Number is Even"); - + printf("The Entered Number is Even"); else - printf("The Entered Number is Odd"); - - + printf("The Entered Number is Odd"); getch(); - }