new semester, new repo structure

This commit is contained in:
2023-01-10 11:59:05 -06:00
parent 0a76658f85
commit ba6de6e18e
725 changed files with 1199 additions and 103 deletions

View File

@@ -0,0 +1,37 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package inclassoct6th;
import java.util.Scanner;
/**
*
* @author caleb
*/
public class InClassOct6th {
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
// Create a scanner
Scanner input = new Scanner(System.in);
//Define args
int number1 = 5, number2 = 17;
System.out.print("What is " + number1 + " + " + number2 + "? ");
int answer = input.nextInt();
while (number1 + number2 != answer)
{
System.out.println("Wrong answer, try again. What is " + number1 + " + " + number2 + "?");
answer = input.nextInt();
}
System.out.println("You got it!");
}
}