For loops
The try yourself portion of the for loop that explains how to use for loops to give a range of numbers from 1-10 The try yourself wants me to take the input and set a range from 1-input and add all numbers in between to produce sum This is what ive written using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { int num = Convert.ToInt32(Console.ReadLine()); /* finds numbers between 1 and num */ for (int sum=1; sum<=num;sum++) /* adds numbers between one and number ???? */ /* produce output*/ { Console.WriteLine(sum); } } } }