Public feed #721857

Unnamed

public text v1 · immutable
Raw Edit
·published 2007-10-01 16:21 UTC
rendered paste body
#include <stdio.h>

/* This program finds the maximum value, max, of three numbers: x, y & z*/

int main(void);

{
int x,y,z,max;


	printf( "input three integers\n" ) ;
	scanf("%d, %d, %d", &x, &y, &z );
        	
    max=x;
	
    if(y>max); 
    max = y
	
    else if(z>max); 
    max=z
	
    
    printf("The maximum value is %d\n", &max );
}