Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

question 2 // create a function that takes a two - digit number as an parameter and prints "ok" in // the console if the given string is greater than its reversed digit version.if not, the // function will print "not ok" // ○ test 1: reversecompare(72)

Xerothermic Xenomorph answered on September 15, 2023 Popularity 3/10 Helpfulness 7/10

Contents


More Related Answers

  • reverse a string if its value its greater than 3
  • A string S is passed as the input. Two words W1 and W2 which are present in the string S are also passed as the input. The program must find the minimum distance D between W1 and W2 in S (in forward or reverse order) and print D as the output.
  • Write code which checks validity of a 3-digit positive integer entered by the user. The number is considered valid (true) if the sum of the first two digits is greater than or equal to the last. Otherwise it is invalid (false).
  • correct this code : #include <stdio.h> #include "main.h" /** * print_last_digit - prints the last digit * of a number series * @n: parameter * Return: Always 0 (Success) */ int print_last_digit(int n) { /*int last_num = n % 10;*/ retu
  • If Given string A then print 1, If Z print 26 If AA print 27 If AZ print 52 If BA print 53 and so on....
  • unction reverseCompare(num) { if(!(num=>10 && num < 100)) { return "Given Number Must Be Two Digits"; } else { return num } let stringNum = num.toString(); let splitNum = stringNum.split(''); let reverseNum = splitNum.reverse(); let joinNum = reverseNum.j
  • unction reverseCompare(num) { if(!(num=>10 && num < 100)) { return "Given Number Must Be Two Digits"; } else { return num } let stringNum = num.toString(); let splitNum = stringNum.split(''); let reverseNum = splitNum.reverse(); let joinNum = reverseNum.j
  • write ajva program to vheck if anumber is less than 20 and greater than 5. It generates the exception out of range otherwise. If the number is within the range , then it displays the square of that number.

  • question 2 // create a function that takes a two - digit number as an parameter and prints "ok" in // the console if the given string is greater than its reversed digit version.if not, the // function will print "not ok" // ○ test 1: reversecompare(72)

    1
    Popularity 3/10 Helpfulness 7/10 Language typescript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Sep 15 2023
    Xerothermic Xenomorph
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.