Go Program to find Sum of Even Numbers

Write a Go program to find Sum of Even Numbers from 1 to n. It uses the for loop to iterate between 1 and n. Inside the loop, if statement filters the even numbers and adds total even to total. package main import “fmt” func main() { var evnum, eventotal int fmt.Print(“Enter the Number to … Read more