• Catalog

    Catalog

    See All
    • Languages
    • Courses

    Languages

    See All
    • C++
    • C#
    • HTML
    • Java
    • JavaScript
    • Python
    • C
    • CSS

    Level

    See All
    • Beginner
    • Intermediate
    • Advanced

    Courses

    See All
    • Introduction to Python
    • Introduction to C
    • Introduction to C#
    • Introduction to SQL
    • Introduction to HTML
    • Introduction to CSS
    • Introduction to Java
    • Introduction to JavaScript
    • Introduction to C++
    • Tech for Everyone

    Courses

    See All
    • C# Intermediate
    • Python Intermediate
    • Java Intermediate
    • JavaScript Intermediate
    • C++ Intermediate
    • C Intermediate
    • SQL Intermediate
    • Game Development with JS

    Courses

    See All
    • React + Redux
    • Angular + NestJS
    • Python Data Structures
  • Online Compiler
    • HTML
    • CSS
    • Javascript
    • C++
    • C
    • PHP
    • Java
    • Python
    • Swift
    • C#
    • Ruby
    • Node.JS
    • Kotlin
    • jQuery
    • Go
    • R
    • TypeScript
  • Discuss
  • Blog
  • Get Pro
Menu
0

Hey whats wrong with my ternary operator plz

https://code.sololearn.com/c2gU1udj7QvD/?ref=app

c#
24th Feb 2020, 4:37 PM
Noé Madranges
2 Answers
+ 2
In this program there is no ternary operator. Ternary operator look like this a > b ? a : b; So you can do like this return x > y ? x : y;
24th Feb 2020, 4:41 PM
A͢J
A͢J - avatar
0
oh lol i put the wrong code it was x > y ? return x : return y but thx
25th Feb 2020, 4:27 PM
Noé Madranges

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
If i give space in my input it does not shows next words
1 Votes
Modulus,Python: why 1 not 0? 1 fitst 2 times in 2, leaving 0 as a result? why 1 not 0?
0 Votes
FIX ERROR in my code ,project guesser game ,code in description
1 Votes
How to make a full wed
0 Votes
Which function is used to access files?
0 Votes
How to anticipate single or multiple input failure(s) when input(s) are read in using C++ std::cin and extraction operator >>
4 Votes
This program is running multiple times
0 Votes
Matrix in cryptography
0 Votes
Asking for another solution for this project
1 Votes
Можете помочь с этим кодом.Нужно вычислить процент прибыли,если бы скидка была дана только для людей с заданным вводным возрасто
0 Votes

Languages

  • C++
  • C#
  • HTML
  • Java
  • JavaScript
  • Python
  • C
  • CSS

Introduction Courses

  • Introduction to Python
  • Introduction to C
  • Introduction to C#
  • Introduction to SQL
  • Introduction to HTML
  • Introduction to CSS
  • Introduction to Java
  • Introduction to JavaScript
  • Introduction to C++
  • Tech for Everyone
  • R
  • Kotlin
  • Go
  • PHP
  • Ruby
  • Swift 4

Intermediate Courses

  • C# Intermediate
  • Python Intermediate
  • Java Intermediate
  • JavaScript Intermediate
  • C++ Intermediate
  • C Intermediate
  • SQL Intermediate
  • Game Development with JS

Advanced Courses

  • React + Redux
  • Angular + NestJS
  • Python Data Structures

Community

  • Discuss
  • Code Bits
  • Blog
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeTop LearnersProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn mobile
Made with
by  Sololearn | ©2023