Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
How many Squares in Rectangle
import java.util.Scanner ; class Rextester { static final int WIDTH = 543 ; static final int HEIGHT = 130 ; public static void main( String args[] ) { Scanner in = new Scanner( System.in ) ; int a = in.nextInt() ; int n = 0 ; if ( ( a <= HEIGHT ) && ( a <= WIDTH ) ) n = ( HEIGHT / a ) * ( WIDTH / a ) ; System.out.println( n ) ; } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Problem_fib
KatyaPetrova
Print Count Strings
Round Price
Frequecy count hashmap
x by stars
JavaQ5
PE #12
fst
Kadane's Algorithm
Please log in to post a comment.