Advertisement
YTG123

Untitled

Jan 25th, 2021
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. # Python
  2. if True:
  3. print("TRUE!")
  4. else:
  5. print("Not true!")
  6.  
  7. // Java
  8. if (true)
  9. System.out.println("TRUE!");
  10. else
  11. System.out.println("Not true!");
  12.  
  13. // Kotlin
  14. if (true)
  15. println("TRUE!")
  16. else
  17. println("Not true!")
  18.  
  19. // Swift
  20. if true { print("TRUE!") }
  21. else { print("Not true!") }
  22.  
  23. # Bash
  24. if [ true ]; then
  25. printf "TRUE\n"
  26. else
  27. prinf "Not true\n"
  28. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement