My issue
the code of odd even with using module and conditional operater is not run but sum time it run but it not submit
My code
#include <stdio.h>
int main() {
int number;
scanf("%d",&number);
if(number %2==0){
printf("Even");
} else {
printf("Odd");
}
printf("%d\n", number ,(number % 2 == 0) ? "Even" : "Odd");
}
Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC07/problems/LJAJAG22