The correct order for the pieces of a function is:
- =
- function
- arguments
<h3>What is a function?</h3>
In Computer programming, a function can be defined as a named portion of a block of executable code that performs a specific task, which is usually a single, related action.
This ultimately implies that, a function comprises a group of related statements (block of code) that only runs and returns a data when it is called.
In conclusion, =NOW() is an example of the correct order for the pieces of a function.
Read more on a function here: brainly.com/question/19181382
A Cell hope you enjoy your answer
Answer:
Written in Python
filenm = input("File name: ")
myfile = open(filenm+".txt")
for i in range(10):
line = myfile.readline()
print(line)
print("End of file")
Explanation:
This line prompts user for file name
filenm = input("File name: ")
This line creates an instance of the file
myfile = open(filenm+".txt")
This line iterates through the 10 lines
for i in range(10):
This line reads the line
line = myfile.readline()
This line prints each line
print(line)
This line prints a message indicating that all possible lines have been printed
print("End of file")
Answer:
void reverse(char dest[], char source[], int size)
{
for(int i=0;i<size;i++)//using for loop.
{
dest[i]=source[i];//assigning each element of source array to dest array.
}
int s=0,e=size-1;//initializing two elements s with 0 and e with size -1.
while(s<e){
char t=des[s]; //SWAPPING
dest[s]=dest[e]; //SWAPPING
dest[e]=t; //SWAPPING
s++;
e--;
}
}
Explanation:
I have used while loop to reverse the array.I have initialize two integer variables s and e with 0 and size-1.Looping until s becomes greater than e.
It will work as follows:
first s=0 and e=0.
dest[0] will be swapped with dest[size-1]
then s=1 and e=size-2.
then des[1] will be swapped with dest[size-2]
and it will keep on going till s is less than e.
Answer:
The answers is [0,1,2,]. I hope this helps you out. Have a wonderful rest of your day. <3 <3 <3
Explanation: