Pointer and Flow Control
Conditional Statement
Check Odd or Even Number
#include<stdio.h>
int main(){
int a = 10;
int *p = &a;
// a = 15;
// if( a % 2 == 0 ){
if( (*p) % 2 == 0 ){
printf("Even Number\n");
}
else{
printf("Odd Number\n");
}
return 0;
}Check Vote Eligibility
Find Maximum Between Two Numbers
Loop Statement
Print Natural Number from 1 to N
Summation of Natural Number from 1 to N
Last updated