Is C# the right program for looping and branching logic | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is C# the right program for looping and branching logic

For use on my windows 10 computer, I need to develop a relatively simple program that can analyze a line of data, make decisions on the line, then loop to the next line or branch to something else. Excel is not well-suited for this type of program. (Fortran is an example of an old program that I think could do what I want.) Questions: 1) Will C# allow me to do what I want ? 2) will C# work on my windows 10 computer? 3) how do I get and install C#? (I tried but found I had to have some type of Google platform to install C#.)

13th Jan 2020, 8:06 PM
Dennis Graves
3 Answers
+ 1
1)C# will allow you to do what you want, but Python would be a better idea if say, the data was coming from a text file or Excel file. 2)C# will definitely work on your Windows 10 computer 3)You can install C# by installing Visual Studio, and then installing the .NET framework and some other preliminaries. You can find a tutorial for this at: https://www.guru99.com/download-install-visual-studio.html
13th Jan 2020, 8:39 PM
Jianmin Chen
Jianmin Chen - avatar
0
The answer is yes, you can do anything with C# programming, and it will install just fine under Windows 10. To install C#, you can download and install Visual Studio Community Edition from https://visualstudio.microsoft.com/vs/community/ or SharpDevelop from https://sourceforge.net/projects/sharpdevelop/ I don't know about the Google platform you were supposed to have installed in your machine for C# to run, but I can guarantee you that it will work with these programs. Good luck!
13th Jan 2020, 8:38 PM
Calin Onofrei
Calin Onofrei - avatar
0
Thank you! 1) Would Python be better because it handles the logic and looping/branching better or because it allows input from an Excel file better? 2) Is Python difficult to learn compared to C#? 3) Many years ago I did a few Fortran programs. Is Python at all similar? Thanks again!
13th Jan 2020, 9:21 PM
Dennis Graves