This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var n, a int | |
for { | |
fmt.Print("Введите число: ") | |
_, err := fmt.Scanln(&n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
numbers := []int{1, 2, 6, 4, 5, 7, 8, 9, 5, 6, 3, 1, 5, 7, 2, 8, 4, 6, 7, 8, 3, 4, 2, 5} | |
fmt.Print("Введите число: ") | |
var n, a int | |
fmt.Scanln(&n) | |
for _, number := range numbers { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
unitNames := []string{"m", "mm", "cm", "dm"} | |
unitK := []float64{1, 0.001, 0.01, 0.1} | |
fmt.Print("Введите длину: ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var m int | |
fmt.Print("Введите номер месяца: ") | |
fmt.Scanln(&m) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var m int | |
fmt.Print("Введите номер месяца: ") | |
fmt.Scanln(&m) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var a float64 | |
var b, c string | |
fmt.Print("Введите длину: ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var len float64 | |
var meas, meas1 string | |
fmt.Print("Введите длину: ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var name string | |
var namef string | |
var age int | |
var ok string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var a, b, sum, mult, resid, max int | |
fmt.Print("Введите число А:") | |
fmt.Scanln(&a) |