Answers for "c# find sum of a multiple of 3 and 5 below a number"

C#
4

sum of two numbers in c#

int num = 123;
int sum = 0;
while(num > 0)
{
  sum += number % 10;
  num /= 10;
}
Console.WriteLine(sum); // output: 6
Posted by: Guest on April-26-2020

Code answers related to "c# find sum of a multiple of 3 and 5 below a number"

C# Answers by Framework

Browse Popular Code Answers by Language