A PHP Error was encountered

Severity: 8192

Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Filename: libraries/Filtered_db.php

Line Number: 23

Write a C# Sharp program to find the minimum value from two given two numbers, represented as string
Q:

Write a C# Sharp program to find the minimum value from two given two numbers, represented as string

0

Write a C# Sharp program to find the minimum value from two given two numbers, represented as string

Sample Output:

12

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

using System;
namespace exercises
{
    class Program
    {
        static void Main(string[] args)
        {

            Console.WriteLine(test("12", "43"));
        }
        public static string test(string strn1, string strn2)
        {
            return Int32.Parse(strn1) > Int32.Parse(strn2) ? strn2 : strn1;
        }
    }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now