Answer:
In C++:
#include <iostream>
using namespace std;
void function1(); void function2();
int main(){
function1(); function2();
return 0;}
void function1(){
cout<<"This is the first part of my program."<<endl<<"It was created with a function"<<endl;}
void function2(){
cout<<"This is the second part of my program."<<endl<<"It was created with a different function.";}
Explanation:
This defines the function prototypes
void function1(); void function2();
The main begins here
int main(){
This calls the two functions from main
function1(); function2();
return 0;}
This calls function1()
<em>void function1(){</em>
<em> cout<<"This is the first part of my program."<<endl<<"It was created with a function"<<endl;}</em>
This calls function2()
<em>void function2(){</em>
<em> cout<<"This is the second part of my program."<<endl<<"It was created with a different function.";}</em>
Answer:
She is 17 her fav color is Blue And her fav subject is Science
Explanation:
Answer: JavaScript is a programming language commonly used in web development. It was originally developed by Netscape as a means to add dynamic and interactive elements to websites. Like server-side scripting languages, such as PHP and ASP, JavaScript code can be inserted anywhere within the HTML of a webpage
Explanation:
Hope this helps
Answer:
The original program is not given; So, I'll just write the program myself in python
import random
x = random.randint(1,10)
y = random.randint(1,10)
result = x * y
print(str(y)+" * "+str(x)+" = "+str(result))
Explanation:
The first line imports random
import random
The next two line generates random numbers between 1 and 10 and save in variables x and y
x = random.randint(1,10)
y = random.randint(1,10)
This line multiplies both numbers
result = x * y
This line prints the result
print(str(y)+" * "+str(x)+" = "+str(result))