Guest User

Untitled

a guest
Jun 22nd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def rightTriangles(): Unit = {
  2. for(a <-1 to 1000; b <- 1 to 1000; c <- 1 to 1000; if a*a == b*b + c*c){
  3. println("a = " + a + " b = " + b + " c = " + c)
  4. }
  5. }
Add Comment
Please, Sign In to add comment