We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66d0a1f commit 5efd2f6Copy full SHA for 5efd2f6
006_functions.cpp
@@ -1,25 +1,25 @@
1
#include<iostream>
2
3
-long int add (int nVar1, int nVar2) {
+long int Add (int nVar1, int nVar2) {
4
return nVar1+nVar2;
5
}
6
7
-int substract (int nVar1, int nVar2){
+int Substract (int nVar1, int nVar2){
8
return nVar1-nVar2;
9
10
11
-void say_hello(void){
+void SayHello(void){
12
std::cout << "Hello, I'm a Function/Method." << '\n';
13
14
15
int main(int argc, char const *argv[]) {
16
long int lnResult;
17
- lnResult = add(5,2);
+ lnResult = Add(5,2);
18
std::cout << "Addition: " << lnResult << '\n';
19
20
- std::cout << "Substraction: " << substract(10,7) << '\n';
+ std::cout << "Substraction: " << Substract(10,7) << '\n';
21
22
- say_hello();
+ SayHello();
23
24
return EXIT_SUCCESS;
25
0 commit comments