Commit 4a34f456 authored by cosmina.dunca's avatar cosmina.dunca

Comments

parent 9965c96d
public class App {
/* These are the exercises for the second week of java
Today is 14 February 2022
Cosmina Dunca */
public static void main(String[] args) throws Exception {
System.out.println("Hello, World!");
int daysPerWeek = 7;
int numberOfWeeks = 6;
int totalDays = daysPerWeek * numberOfWeeks;
System.out.println(totalDays);
boolean onHoliday = false;
double approxPI = 3.14;
int daysPerWeek = 7; // Ex 1.1
int numberOfWeeks = 6; // Ex 1.2
int totalDays = daysPerWeek * numberOfWeeks; // Ex 1.3
System.out.println(totalDays);
boolean onHoliday = false; // Ex 1.4
double approxPI = 3.14; // Ex 1.5
double circumference = 2 * 3 * approxPI;
String greetingString = "Hello";
String introductionString = "My name is Inigo Montoya";
String reminderString = "You killed my father";
String threatString = "Prepare to die haha!";
System.out.println(greetingString + ", " + introductionString + ", " + reminderString + ", " + threatString);
String greetingString = "Hello"; // Ex 1.7
String introductionString = "My name is Inigo Montoya"; // Ex 1.8
String reminderString = "You killed my father"; // Ex 1.9
String threatString = "Prepare to die hahaha!"; // Ex 1.10
System.out.println(greetingString + ", " + introductionString + ", " + reminderString + ", " + threatString); // Ex 1.11
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment