There are five basic programming elements, or operations: input, output, arithmetic, conditional, and looping. Every program uses at least two of these.
The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning).
Input: getting data and commands into the computer
Output:getting your results out of the computer
Arithmetic: performing mathematical calculations on your data
Conditional: testing to see if the condition is true or false
Looping: cycling through a set of instructions until some condition is met
Answer:
company_name = input("What if your company name?");
print("I hope " + company_name + "becomes successful!");
Explanation:
The input of the user becomes a variable which is then stored in order to print it out as a message.
Answer:
Please find the complete question in the attached file.
Explanation:
Following are the code to the given question:
-module(helloworld)//use a module
-export([start/0])
start() ->//start module
func([Head Taill) ->//defining a method func that takes a parameter
{
first, second} = Head,//holding head value
if
//defining if block
first > second -> func(Tail)//method func that takes a parameter
true ->
[first, second}|func(Tail)]//method func that takes a parameter
end