A simple program that I wrote to ask the user to give a number and then the program will check if the given number is an odd or even number.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

Program Listing

#=
odd_even.jl
Jake R. Pomperada, MAED-IT, MIT
www.jakerpomperada.com   www.jakerpomperada.blogspot.com
jakerpomperada@gmail.com
Bacolod City, Negros Occidental
=#
println()
print("\tOdd and Even Numbers in Julia")
println("\n")
print("\tGive a Number  : ")
val_num = parse(Int, readline(stdin))
println()
if (val_num % 2 == 0)
   println("\tThe given number ",val_num, " is even number.")
else
   println("\tThe given number ",val_num, " is odd number.")
end
println()
print("\tEnd of Program")
println("\n")

Leave a Reply

Your email address will not be published.