Ask Question
13 August, 19:36

Write an expression that evaluates to true if the value of the string variable s1 is greater than the value of string variable s2. write an expression that evaluates to true if the value of the string variable s1 is greater than the value of string variable s2.

+5
Answers (1)
  1. 13 August, 20:18
    0
    It is not entirely clear what this question means. I am going to assume that 'value' of a string refers to a numerical value, i. e. the strings represent numbers. The question also does not mention the programming language to use. There is a function in Delphi:

    function isGreater (number1, number2: string) : boolean;

    begin

    Return StrToFloat (number1) >StrToFloat (number2);

    end;
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write an expression that evaluates to true if the value of the string variable s1 is greater than the value of string variable s2. write an ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers