Showing posts with label PROBLEM SOLVING USING DECISION MAKING. Show all posts
Showing posts with label PROBLEM SOLVING USING DECISION MAKING. Show all posts

Monday, January 12, 2015

PROBLEM SOLVING USING DECISION MAKING

PROGRAM:

#include<stdio.h>
main()

{
int a,rem;

printf("Enter a Number\n"); scanf("%d",&a); 
rem=a%2;
if(rem==0)
printf("The Given Number is Even");

else
printf("The Given Number is Odd");

}

OUTPUT:

Enter a Number 13


The Given Number is Odd