diff --git a/201816040317/Ex06_50.cpp b/201816040317/Ex06_50.cpp index 8960e30..263cd86 100644 --- a/201816040317/Ex06_50.cpp +++ b/201816040317/Ex06_50.cpp @@ -7,18 +7,18 @@ void tripleByReference(int & );//pass-by-reference int main() { - int count1,count2; + int count; - cin>>count1; - cin>>count2; + cout<<"Enter a value for count:"; + cin>>count; - cout<<"count1="< + +using namespace std; + +int tripleByValue(int);//pass-by-value +void tripleByReference(int & );//pass-by-reference + +int main() +{ + int count; + + cout<<"Enter a value for count:"; + cin>>count; + + + cout<<"Value of count before call to tripleByValue() is:"<