All pastes #40724 Raw Edit

max

public c v1 · immutable
#40724 ·published 2006-02-08 13:55 UTC
rendered paste body
#include<stdio.h>#include<math.h>int main(){          long int max;          long int dup;          scanf("%ld",&dup);          max = dup;          while(dup != EOF)          {                     scanf("%ld",&dup);                     if(dup>max)                     {                                max=dup;                     }          }                                printf("%ld\n",max);                                return 0;                          }