Run ❯
Get your
own C#
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
using System; namespace MyApplication { class Program { static void Main(string[] args) { int[] scores = {85, 42, 77, 91, 58}; int passed = 0; foreach (int score in scores) { if (score >= 50) { passed++; } } Console.WriteLine(passed + " of " + scores.Length + " students passed the test."); } } }
4 of 5 students passed the test.