Answer:
The answer to this question is given below in the explanation section.
Explanation:
#include <iostream>
// it is preprocessor director that manipulate the input output in the program
using namespace std;// it is used to format input and output
int main() {
// main function is started
int x = 5;
// variable x is declared and initialized with value 5.
int y = 6;
//variable y is declared and initialized with value 6.
int z = 34; //variable z is declared and initialized with value 34.
int total = (x+(x + y)*z+y);
// variable total is declared and initialized with value of x,y,and z. and calculation performed on these value such as (5+(5+6)*34+6) that is equal to 385.
cout << total;
// print the value of total variable that is 385
return 0;
}
Explanation:
if(more than three hours left)
{
study web-development;
}
else
{
practice coding;
}
I have taken an real life example and present it as if-else statements.
If I have more than 3 hours free in a day.Then I should study web-development.
If i don't have more than 3 hours free in a day then I should practice coding.
Branches are the statements within the {} curly braces.In our case these are:-
study web-development;
practice coding;
The device that connects computers to network connectors is called a network interface card. This is also called as NICs, and it acts as the physical connection between the device and the network's cable in order for it to provide a connection.