#include
<iostream>#include <string>
using
namespace std;//original
//employing functions to simplify programs
void
Duke (string D){
cout << D << endl << D << endl << D << endl << D << endl << D << endl << D << endl << D << endl << D << endl;
cout << D << endl << D << endl << D << endl << D << endl << D << endl << D << endl << D << endl << D << endl;
}
void
Group(string D){
Duke (D);
Duke (D);
Duke (D);
Duke (D);
}
void
Group2 (string D){
Group (D);
Group (D);
Group (D);
Group (D);
}
int
main(){
Group2 (
"We all make Duke what it is");return
0;}
#include
<iostream>#include
<string>using
namespace std;//More efficient way to print line 1024 times
void
One (string D){
"We all make Duke what it is"<<endl;cout<<
cout<<
"We all make Duke what it is"<<endl;cout<<
"We all make Duke what it is"<<endl;cout<<
"We all make Duke what it is"<<endl;}
void Two (string D)
{
One (D);
One (D);
One (D);
One (D);
}
void
Three (string D){
Two (D);
Two (D);
Two (D);
Two (D);
}
void
Four (string D){
Three (D);
Three (D);
Three (D);
Three (D);
}
void
Five (string D){
Four (D);
Four (D);
Four (D);
Four (D);
}
int
main (){
string D;
Five (D);
return 0;}