Go Program to Print Natural Numbers

This Go program to print natural numbers from 1 to N uses the for loop to iterate values from 1 to user-entered value. Within the loop, the println statement prints each number as an output. package main import “fmt” func main() { var num, i int fmt.Print(“\nEnter the Maximum Natural Number Limit = “) fmt.Scanln(&num) … Read more