Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- int a = // get input from user;
- int b = // get input from user;
- int c = // get input from user;
- int d = 0;
- if (a > b) or (a > c) {
- d = a;
- } else if (b > a) or (b > c){
- d = b;
- } else if (c > a) or (c > b){
- d = c;
- }
- // print: max number is 'd'
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement