-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproblem13 course4.cpp
More file actions
77 lines (70 loc) · 1.25 KB
/
Copy pathproblem13 course4.cpp
File metadata and controls
77 lines (70 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#include <iostream>
#include<string>
using namespace std;
//by refrence
//void Readnumbers(int &num1 ,int &num2 ,int &num3 )
//{
//
// cout << "Enter number1: " << endl;
// cin >> num1;
//
//
// cout << "Enter number2: " << endl;
// cin >> num2;
//
//
// cout << "Enter number3: " << endl;
// cin >> num3;
//
//}
//
//int findMaxNumber(int num1, int num2, int num3)
//{
// int max;
// max = num1;
// if (num2 > max)
// max= num2;
// if (num3 > max)
// max=num3;
// return max;
//}
//
//void PrintMaxNumber(int Max)
//{
// cout << "The maximum number is : " << Max << endl;
//}
//int main()
//{
// int num1, num2, num3;
// Readnumbers(num1, num2, num3);
// PrintMaxNumber(findMaxNumber(num1, num2, num3));
//}
//by arrays
//void ReadNumbers(int arr[3])
//{
// for (int i = 0;i < 3; i++)
// {
// cout << "Enter number " << i + 1 << endl;
// cin >> arr[i];
// }
//}
//int FindMaxNumber(int arr[3])
//{
// int max = arr[0];
// if (arr[1] > max)
// max = arr[1];
// if (arr[2] > max)
// max = arr[2];
// return max;
//}
//void PrintMaxNumber(int max)
//{
// cout << "Max number is :" << max;
//}
//int main()
//{
// int arr[3];
//
// ReadNumbers(arr);
// PrintMaxNumber(FindMaxNumber(arr));
//}