int num1, num2; for (num1 = 1; num1 <= 101; num1++) { for (num2 = 1; num2 <= 101; num2++) { if (num1 + num2 == 101) Console.WriteLine(num1 + " / " + num2); } } Console.ReadLine(); } } }
if (num1 / num2 == 5) Console.WriteLine(num1+"/"+num2);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)