Answer:
length = int(input("Enter a length "))
width = int(input("Enter a width "))
area = length * width
print("The area is " + area)
This would be &&
Hope this helped
Answer:
led to exposure of dangerous things
Answer:
IF THIS DOES OCCUR THEN THE SYSTEM WILL AUTOMATICALLY CUT OFF WITH NO WARNING AT ALL...
Explanation:
ON WHAT INFORMATION AND RESEARCH HAS GIVEN ME IT WILL BE THE AWNSER GIVEN AT THE TOP...
Answer:
#include <iostream>
#include<string.h>
using namespace std;
void printCharacter(string name){
for(int i=0;name[i]!='\0';i++){
cout<<name[i]<<endl;
}
}
int main()
{
string name;
cout<<"enter the name: ";
cin>>name;
printCharacter(name);
}
Explanation:
first include the two libraries iostream for input/output and string library for using the string.
then, create the main function and declare the variable type string.
cout instruction is used o display the message on the screen.
cin is used to store the value in the name variable.
after that, call the function. The program control move to the the function. In the function for loop is used to print the character one by one until end of the name.