Listing 3 also contains a return statement to satisfy the value-returning requirements of this version of the main function.
cout << "10 divided by 3 to two decimal digits is: "
<< 10.0/3.0;
return 0;
}//end main
Listing 3
|
Listing 3 also signals the end of the main function and the end of the program.