Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level 6 Lesson9 c Language

#include <stdio.h>

int main() {

int x, y, z;

x = 10;
y = 11;

(______) ____ (______) ____ (______);

printf("Value of z: %d", z);

return 0;
}
by

2 Answers

sam5epi0l
Here is a possible solution:


#include <stdio.h>

int main() {

int x, y, z;

x = 10;
y = 11;

(x > y) ? (z=x) : (z=y);

printf("Value of z: %d", z);

return 0;
}
bhagavathula
can you explain me if we write x=z instead of writing z=x

Login / Signup to Answer the Question.