// 123.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int max(int a, int b)
{
int temp;
if (a>b)
temp=a;
else
temp=b;
return temp;
}
int main(int argc, char* argv[])
{
int x,y;
scanf("%d %d,&x,&y);
int result=max(x, y);
printf("max=%d\n, result");
return 1;
}
|