even odd c
#include <stdio.h>
int main() {
int num;
printf("Enter an integer: ");
scanf("%d", &num);
// True if num is perfectly divisible by 2
if(num % 2 == 0)
printf("%d is even.", num);
else
printf("%d is odd.", num);
return 0;
}
if((x & 1) == 0)
printf("EVEN!\n");
else
printf("ODD!\n");if( num % 2 == 0 )
printf("EVEN!\n");
else
printf("ODD!\n");
Also in C:
- es palindromo
- how to create random integers from a specific range in c language
- Access denied creating xampp-control.ini
- android is not recognized
- How to Convert double to int in C
- markdown empty line
- PS1 modified lags
- casting in c
- diferencia entre * y & en c
- how to pass props to higher order component
- c program to swap two arrays
- c remove element from array
- logging.logger
- calculate max of three numbers using ternary operator in c
- java.lang.SecurityException: Permission denied (missing INTERNET permission?)
- check if string starts with c
- factorial c program using for loop
- arduino digital io pins
- eeprom read arduinojson object
- clear screen c
- random en c
- declare variable in c
- read file in C
- latex noindent