Facebook
From Lousy Marten, 3 Weeks ago, written in Plain Text.
This paste is a reply to Re: Re: Re: Untitled from Bistre Stork - view diff
Embed
Download Paste or View Raw
Hits: 59
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int a = 0, b = 0, c = 0;
  6.     printf("Enter three integer numbers to find the maximum value\n");
  7.     scanf("%d %d %d",&a,&b,&c);
  8.     printf("Maximum value: %d", ((a>b && a>c) ? a : (b>a && b>c) ? b : c));
  9.  
  10.     return 0;
  11. }
  12.