Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

In this README.md, answer the following question:

* What happens if you invoke a value method (i.e. a method that returns a result) and don't do anything with the returned result; that is, if you don't assign the returned result to a variable or use it as part of a larger expression?
* What happens if you invoke a value method (i.e. a method that returns a result) and don't do anything with the returned result; that is, if you don't assign the returned result to a variable or use it as part of a larger expression? You will get
* a error where the computer doesn't know what to read as the value for the method.

## PART 2
* Fork and clone this lab as you have done in all previous labs, and then complete the following:
Expand Down
57 changes: 57 additions & 0 deletions src/Lab006.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
//Miaka LaRose 10/27
import java.util.Scanner;

/**
* class
*/
public class Lab006 {

public static int n;
/**
* creating n
*/
public static int m;
/**
* creating m
*/
public static Scanner s = new Scanner(System.in);
/**
* allows user to input a value
*/
public Lab006(){
int u = m;
int w = n;

}
/**
* useless?
*/

public static boolean isDivisible(){

if(m % n == 0 ){

return true;
}else{
return false;
}
/**
* returns true or false baised on if n is divisible by m
* @return
*/
}

/**
*
* @param args
*/
public static void main(String[] args){

System.out.println("Input any number of your choosing for the n");
n = s.nextInt();
System.out.println("Input any number of your choosing for the m");
m = s.nextInt();
System.out.print(isDivisible());
}

}