Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int m, n;
void transpose(int matrix[]){
int transp[m][n];
for (int i = 0; i < n; i++){
for (int j = 0; j < m; j++){
transp[j][i] = matrix[i][j];
cout<< transp[j][i]<< " ";
}
cout<< "\n";
}
}
int main(){
cout<< "Enter the value for n: ";
cin>> n;
cout>> "Enter the value for m: ";
cin>> m;
int mymatrix[n][m];
for (int i = 0; i < n; i++){
for (int j = 0; j < m; j++){
mymatrix[i][j] = (rand() % 50);
}
}
transpose(mymatrix);
}
Explanation:
The C source code defined a void transpose function that accepts a matrix or a two-dimensional array and prints the transpose on the screen. The program gets user input for the row (n) and column (m) length of the arrays. The C standard library function rand() is used to assign random numbers to the array items.
Answer:
def main():
name = input("What is your name? ")
if not name == "" or "":
age = int(input("What is your age? "))
print("Hello " + name + "! You were born in " + str(2021 - age))
main()
Explanation:
Self explanatory
Answer:
first question, to incremently increase
second is to generate a random number between the bounds of the min ,max
Explanation:
Answer:
Watermark
Explanation:
Almost all versions of Microsoft Word allow you to insert watermarks. Watermarks help users insert text and images that appear in the background of your Word document. These texts can sometimes appear as images or just plain text and are remarkable when used. The watermark option can be found under the design tab for newer versions of Word or the page layout tab in older versions
Answer:
any device
Explanation:
I would say that because you can code on any device if thats what you mean. There are websites for coding and they are below
The best websites to learn coding
- Codecademy.
- Udemy.
- Pluralsight (Code School)
- Team Treehouse.
- freeCodeCamp.
- edX.
- Udacity.
credit to mikkegoes . com