Breaking

Search

Saturday, June 6, 2020

If Else Statement

#include<stdio.h>

#include<conio.h>

{

int number;

printf("enter an integer:");

scanf("%d ",&number);

if (number %2==0)

printf("%d is an even integer",number);

else

printf("%d is an even integer",number);

gech();

}

OUTPUT:

Enter an integer:1

1 is an odd integer.

No comments:

Post a Comment