Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Problem: on_off
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int count; for (count = 1;count<101;count++) { if (count%3==0) { if (count%5==0) { Console.WriteLine("ONOFF"); } else {Console.WriteLine("ON");} } if (count%5==0) { if (count%3==0) { Console.WriteLine("ONOFF"); } else {Console.WriteLine("OFF");} } else { Console.WriteLine(count); } } } } }
run
|
edit
|
history
|
help
0
Simple inheritance
SHA Tester 2.0
Reverse String in for loop
123
linq subquery z grupowaniem po dwóch polach
4341
Fórum PS ➡ Converting a type (class category) to bool, implicitly ♦
Overloading
c# string abbreviation
Square Integer Matrix