codinasion-archive / codinasion-programme

An open source codebase for sharing programming solutions.
https://codinasion.vercel.app/programme
MIT License
62 stars 147 forks source link

Negative of a number #910

Closed harshraj8843 closed 2 years ago

harshraj8843 commented 2 years ago

Title of programme

Write a Julia programme to find negative of a number.

Additional information

Input  : 10
Output : -10

Code of Conduct

Kirito-Excalibur commented 2 years ago

Hi! I have wrote the program.

function NegativeNumber(a)
print(a*(-1))
end
NegativeNumber(5)
harshraj8843 commented 2 years ago

Hey @Kirito-Excalibur

Could you please raise a PR for this 👍🏻