#include <iostream>
using namespace std;
void writeProverb();
//This is the prototype for the writeProverb function
int main()
{ // Fill in the code to call the writeProverb function
return 0; }
// *********************************************************************
// writeProverb
//
// task: This function prints a proverb
// data in: none
// data out: no actual parameter altered
//
// ********************************************************************
// Fill in the function heading and the body of the function that will print
// to the screen the proverb listed in the comments at the beginning of the
// program
Question: Fill in the code (places in bold) so that the program will print out the proverb listed in the comments at the beginning of the program. The proverb will be printed by the function which is called by the main function.
#include <iostream>
using namespace std;
void writeProverb();
//This is the prototype for the writeProverb function
int main()
{ // Fill in the code to call the writeProverb function
writeProverb();
return 0;
}
// *********************************************************************
void writeProverb(){
cout<<"The proverb given at the start of the programme."<<endl;
}
Comments
Leave a comment