Advertisement
karlakmkj

Simple For loop

Nov 20th, 2020 (edited)
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. //To create a template for your weekly team meeting that runs once for each week in your 16-week long project.
  2.  
  3. using System;
  4.  
  5. namespace ForLoop
  6. {
  7.   class Program
  8.   {
  9.     static void Main(string[] args)
  10.     {
  11.       for (int i =0; i<16; i++){ //increment happens here!
  12.         CreateTemplate(i+1);    //Have to input an argument for the method
  13.                 //So plus 1 to make the week start from 1 until 16
  14.       }
  15.     }
  16.    
  17.     static void CreateTemplate(int week)
  18.     {
  19.       Console.WriteLine($"Week {week}");
  20.       Console.WriteLine("Announcements: \n \n \n ");
  21.       Console.WriteLine("Report Backs: \n \n \n");
  22.       Console.WriteLine("Discussion Items: \n \n \n");
  23.     }
  24.   }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement