Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CSharpCycles05
- {
- class Program
- {
- static void Main(string[] args)
- {
- int startCycle = 7;
- int endCycle = 98;
- int step = 7;
- string spacer = ", ";
- for (int i = startCycle; i <= endCycle; i+=step)
- {
- Console.Write(i + spacer);
- }
- Console.WriteLine("\b\b.");
- startCycle = 7;
- endCycle = 100;
- for (int i = startCycle; i < endCycle; i += step)
- {
- Console.WriteLine(i);
- }
- Console.ReadKey();
- }
- }
- }
Add Comment
Please, Sign In to add comment