You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package cap3
|
|
|
|
func Ex32() int {
|
|
for x := 1; x <= 4; x++ {
|
|
count := 0
|
|
if x != 1 {
|
|
count++
|
|
}
|
|
|
|
if x == 3 {
|
|
count++
|
|
}
|
|
|
|
if x == 4 {
|
|
count++
|
|
}
|
|
|
|
if x != 4 {
|
|
count++
|
|
}
|
|
|
|
if count == 3 {
|
|
return x
|
|
}
|
|
}
|
|
|
|
return 0
|
|
}
|
|
|