Server computers are mostly used for internet porpoises, because server computers are carrying websites or game servers, while the client computer is actually just connecting to the server computer's network and accesses for example websites saved and uploaded on the server computer.
TRUE HSJSJSJJSHSJSHJSHSJDJDJSHHS
Answer:
#include<iostream>
using namespace std;
//create the exchange function
void exchange(int a, int b){
int temp; //initialize temporary
//swap the variables value
temp=a;
a=b;
b=temp;
//print the output after exchange
cout<<"a is: "<<a<<endl;
cout<<"b is: "<<b<<endl;
}
//main function program start from here
int main(){
//initialization
int a=3, b=6;
exchange(a,b); //calling the function
return 0;
}
Explanation:
Create the function exchange with two integer parameter which takes the value from the calling function.
and then declare the third variable temp with is used for swapping the value between two variables.
first store the value of 'a' in the temp and then assign the 'b' value to 'a' and then, assign the temp value to b.
for example;
a=2, b=9
temp=2;
a=9;
b=2;
So, the values are swap.
and then print the swap values.
Create the main function and define the input a and b with values.
Then, calling the exchange function with two arguments.
Explanation:
SanfoundryMenu
Java Program to Illustrate a Method without Parameters and Without Return Type
« PrevNext »
This is a Java Program to Illustrate a Method without Parameters and Without Return Type.
We have made the method to calculate area. We call this method from main method and then enter the radius of the circle as input. Now we calculate area and print the output.
Here is the source code of the Java Program to Illustrate a Method without Parameters and Without Return Type. The Java program is successfully compiled and run on a Windows system. The program output is also shown below