Problem Analysis:
The problem is to check the given numbers are odd or even having the parameters a.
The output is to print the numbers as odd or even
Algorithms:
1.start
2.Input the parameters by the user.
i.e. int a;
3.if a is divided by two and remainder ‘r’ is zero.Then the number is even else odd.\
4.Print the parameters a as odd or even.
5.End.
Flowcharts:
fig: flowchart to print odd or even.
Codes:
Outputs:
Compiling , Debugging and Testings.
Enter a: 5
5 is odd.