summaryrefslogtreecommitdiff
path: root/testapp/c_cpp_files/greatest.cpp
blob: 0194855822528bb1636c24f5c41b2d341da4f7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int greatest(int a,int b,int c)
{
 if(a>b && a>c)
 {
	return a;
 }
 else if(b>c)
 {
  	return b;
 }
 else
 {
	return c;
 }
}