open:nested-if

nested if

if(and condition1 condition2) statement#1 statement#2

(ns clojure.examples.hello
   (:gen-class))

;; This program displays Hello World
(defn Example [] (
   if ( and (= 2 2) (= 3 3))
   (println "Values are equal")
   (println "Values are not equal")))
   
(Example)

Output

Values are equal

  • open/nested-if.txt
  • Last modified: 2024/10/05 06:15
  • by 127.0.0.1