jenoamaven opened a new pull request, #37:
URL: https://github.com/apache/netbeans-antora-site/pull/37

           // Pounds to Kilograms
           double pounds = 150.0;
           double kilograms = pounds * 0.453592;
           System.out.println("Pounds: " + pounds);
           System.out.println("Kilograms: " + kilograms);
   
           // Miles to Kilometers
           double miles = 26.2;
           double kilometers = miles * 1.60934;
           System.out.println("Miles: " + miles);
           System.out.println("Kilometers: " + kilometers);
   
           // Fahrenheit to Celsius
           double fahrenheit = 98.6;
           double celsius = (fahrenheit - 32) * 5/9;
           System.out.println("Fahrenheit: " + fahrenheit);
           System.out.println("Celsius: " + celsius);
   
           // Average Age of Students
           int student1Age = 18;
           int student2Age = 19;
           int student3Age = 20;
           int student4Age = 18;
           int student5Age = 17;
           int student6Age = 21;
           int student7Age = 19;
           int student8Age = 20;
           int student9Age = 18;
           int student10Age = 19;
           int totalAge = student1Age + student2Age + student3Age + student4Age 
+ student5Age + 
                   student6Age + student7Age + student8Age + student9Age + 
student10Age;
           double averageAge = totalAge / 10.0;
           System.out.println("Student Ages: " + student1Age + ", " + 
student2Age + ", " + student3Age 
                   + ", " + student4Age + ", " + student5Age + ", " + 
student6Age + ", " + student7Age 
                   + ", " + student8Age + ", " + student9Age + ", " + 
student10Age);
           System.out.println("Average Age: " + averageAge);
   
           // Fantasy Story
           String heroName = "Aether";
           String villainName = "Erebos";
           String magicalItem = "The Eye of Eternity";
           String legendaryWeapon = "Voidbringer";
           String powerfulAbility = "Chronomancy";
           String story = "In the realm of Atheria, the valiant hero, " + 
heroName + ", embarked on a perilous journey to confront the formidable " + 
villainName 
                   + ". Armed with the legendary " + legendaryWeapon + " and 
seeking the guidance of " + magicalItem + ", " + heroName 
                   + " sought to master the ancient art of " + powerfulAbility 
+ " to defeat the darkness that threatened to consume the land.";
           System.out.println(story);
   
       }
   }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to