Thursday, May 13, 2021

Addition of Two Numbers in Julia

 In this tutorial, I will share with you how to write a program that will ask the user to give two numbers, and then the program will compute the sum of the two given numbers using Julia programming language.

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

#= addition.jl
   Jake R. Pomperada, MAED-IT, MIT
   www.jakerpomperada.com   www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   Bacolod City, Negros Occidental
=#
println()
print("\tAddition of Two Numbers in Julia")
println("\n")
print("\tEnter First Value  : ")
a = parse(Int, readline(stdin))
print("\tEnter Second Value : ")
b = parse(Int, readline(stdin))
println()
println("\tThe sum of ",a, " and ", b, " is ", a+b,".")
println()
print("\tEnd of Program")
println("\n")


No comments:

Post a Comment