Determining if integers are sorted I have this task to find whether 5 integers are ordered from the smallest to the largest or not.

Depending on the results, the program output should be "yes" or "no". No loops or arrays supposed to be used (according to the task). 
This is my solution, but it's 4 lines longer. Can anyone help me make this better?

int main() {
    int a, b, c, d, e;

    scanf("%d %d %d %d %d", &amp;a, &amp;b, &amp;c, &amp;d, &amp;e);

    if ( a &lt; b &amp;&amp; b &lt; c ) {
        if ( c &lt; d &amp;&amp; d &lt; e ) {
            printf("yes");
        } else {
            printf("no");
        }
    } else {
        printf("no");
    }       

    return 0;
}
Hint: think about whether you can combine the two if statements into one.