Go Program for Reverse Natural Numbers

Golang Program to print Natural Numbers in reverse 3

This Go program to print natural numbers in reverse order uses the for loop to start traverse from n until 1. Within the loop, the println statement prints natural numbers. package main import “fmt” func main() { var num, i int fmt.Print(“\nEnter the Last Natural Number = “) fmt.Scanln(&num) fmt.Println(“\nNatural Numbers from “, num, ” … Read more