-
Ok i am lost
MY INSTRUCTOR GAVE US AN ASSIGNMENT AND I AM COMPLETELY LOST PLEASE HELPME
Part A
Write an application that prints to the following four lines to the screen:
1
1 2
1 2 3
1 2 3 4
You must use at least one of each of the following statements in your solution:
System.out.print
System.out.println
System.out.printf
Part B
Write an application that gets two integers from the user and prints out whether it is a multiple of the second.
Submit a zip file of your NetBeans project that includes all files.
-
This is not nearly as difficult as you may think, however, I would like to see how you are thinking of trying it, it you give code please use code tags.
for the first one, if you are allowed to use loops, use 2.
The second part is fairly simple, to find if a number is evenly divisible use %(modulus), it returns the remainder of two numbers after division, what remaider is returned when two numbers are evenly divisible?
-
As sunde mentioned, this is a very simple task, however, please show what you have written so far so that we can help you from there. Also, don't forget to use code tags when you post code here.
Best,
-
Yeah, we're not a 'do it for you' homework service - but we are here to help. What don't you understand?