Uml assistance

https://imgur.com/qJNbUZ2 So I’ve recently just started a programing course and I have been given a uml diagram to complete, as you can see in the image it has the description of what the program is meant to do but im rather confused as to where I’m meant to go or what I’m meant to do after the Count = 1 to loops section, I’ve made an attempt at it but just can’t seem to get it working, any help would be appreciated.

namespace project { class Program { static void Main(string[] args) { int divisor; int loops; bool keyBoardinput; int count = 0;

 Console.WriteLine("Please enter your loops number."); keyBoardinput = int.TryParse(Console.ReadLine(), out loops); Console.WriteLine("Please enter your divisor number, make sure its bigger than the loops."); keyBoardinput = int.TryParse(Console.ReadLine(), out divisor); if (keyBoardinput) while (loops >= divisor) { int result; result = count % divisor; if(result == 0) { Console.WriteLine(+count); } } else { Console.WriteLine("Sorry invalid input, try again"); } Console.ReadLine(); 

submitted by /u/Noxas97
[link] [comments]

Leave a Reply