x = input("Enter a word: ")
y = input("Enter a word: ")
x,y = y, x
print(x)
print(y)
I hope this helps
Answer:
An <u>arithmetic logic unit</u> (ALU) is a digital circuit used to perform arithmetic and logic operations.
<u>The control unit</u> of the central processing unit regulates and integrates the operations of the compute
Answer:
a
Explanation:
Format Painter is used when you want to copy formatting from one item to another.
Answer:
The function written in C++
int str(string word)
{
int count = 1;
for(int i =0; i<word.length();i++)
{
if(word[i] == ' ')
{
count++;
}
}
return count;
}
Explanation:
This line defines the function
int str(string word)
{
This line initializes count to 1
int count = 1;
This line iterates through the input string
for(int i =0; i<word.length();i++)
{
This line checks for blank space
if(word[i] == ' ')
{
Variable count is incremented to indicate a word count
count++;
}
}
return count;
}
<em>See attachment for full program</em>