Julia Program While Loop

Today i trying to execute while loop in Julia

Julia is a  Open Source.Julia is free for everyone to use..Julia is a high-level general-purpose dynamic programming language that is designed to address the needs of high-performance numerical analysis and computational science, without the need of separate compilation to be fast.


Julia is used in

  • Machine Learning
  • Data Science
  • Visualisation
  • General Purpose
  • Parallel Computing
  • Scientific Domains


While Loop  to print even number between 2 to 10 .

 To print the even number we will first declare a variable called as 'a' and assign a value as two. This is very simple just declare as follow a=2;

In the next line we will create a while loop.

while a <10
        if(a%2 == 0)
          println(a)
        end
        global a=a+1
        end

here we are checking by using if condition , if the number is divisible by 2 then it is even number. Lets execute the script and see




Output : 
2
4
6
8



Next :  Main Menu


Comments

  1. nice information on data science has given thank you very much.
    Data Science Training in Hyderabad

    ReplyDelete
  2. Feedback from my students made the course better and better. The ability to "instantly" change my website meant that I could swiftly correct errors and explain myself. machine learning and artificial intelligence courses in hyderabad

    ReplyDelete
  3. I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts. Python Projects for Students Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account. Project Center in Chennai

    ReplyDelete
  4. You actually make it look so easy with your performance but I find this matter to be actually something which I think I would never comprehend. It seems too complicated and extremely broad for me.
    I'm looking forward for your next post, I’ll try to get the hang of it!
    business analytics course in hyderabad

    ReplyDelete
  5. Thank you quite much for discussing this type of helpful informative article. Will certainly stored and reevaluate your Website.
    Data Analytics Course in Bangalore

    ReplyDelete

Post a Comment