#include void largest_num(int num1,int num2,int num3); void main(void) { int n1, n2, n3; cout << "enter the first number :"; cin >> n1; cout << "enter the second number :"; cin >> n2; cout << "enter the third number :"; cin >> n3; largest_num(n1, n2, n3); } void largest_num(int num1,int num2,int num3) { if (num1 == num2 || num1 == num3 || num2 == num3) cout << "one of the values is the same as the other\n"; else { if (num1 > num2 && num1 > num3) cout << num1 << endl; else if (num2 > num3) cout << num2 << endl; else cout << num3 << endl; } }