Answer:
cout<<"User Age is ="<<userAge<<endl;
Explanation:
#include<iostream>
using namespace std;
int main()
{
int userAge;
cin >> userAge; // Program will be tested with values: 15, 40.
cout<<"User Age is ="<<userAge<<endl;
return 0;
}
Answer:
A webpage is a class website and a website is a link where you can find useful information.
Explanation:
Please follow
Answer:
Following are the program in python language:
def list_concat(ls): #define function
if(len(ls) == 0): #set if condition
return ""
res = ""
for x in ls: #set for loop
res += x + " "
return res[:len(res)-1] #removing the extra spaces from list
ls = ['limit','break','ready'] #initialize the value in list
print(list_concat(ls)) #call the function
Output:
limit break ready
Explanation:
Here we declared a function "list_concat()" in which we pass an argument "ls" then check if condition that check the length of list .We also Iterating the loop in that function res[:len(res)-1] statement removes the extra space from the list and finally print the list