Code :
#include<iostream>
#include<conio.h>
using namespace std;
void function() {
//function body declaration
cout<<"Hello World."<<endl;
}
int main() {
//function call 3 times
function();
function();
function();
return 0;
}
Output :
Hello World.
Hello World.
Hello World.
IDE Used To Test This Code : DEV C++.
Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.
#include<iostream>
#include<conio.h>
using namespace std;
void function() {
//function body declaration
cout<<"Hello World."<<endl;
}
int main() {
//function call 3 times
function();
function();
function();
return 0;
}
Output :
Hello World.
Hello World.
Hello World.
IDE Used To Test This Code : DEV C++.
Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.
Post a Comment