Go Program to find Sum of Even and Odd Numbers

This Go program to find Sum of Even and Odd Numbers from 1 to n uses If else to check whether it is even or not. The for loop helps the GC to iterate between 1 and n. If a condition results in True, the number added to an even total. Otherwise, it adds to … Read more