2075 5

C Programming20755 marksConditional Statements

Write a program to check whether a number entered is even or odd.

Write a program to check whether a number entered is even or odd. [5]

When a number is divided by 2: - If the remainder is 0, the number is even - If the remainder is not 0, the number is odd The modulus operator % is used to find the remainder. --- --- Line Description ------------------- include<stdio.h Header file for input/output functions like printf and scanf...

Up nextWrite a program to calculate sum of first 10 odd numbers.