Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros.
Exam...
2年以上 前
解決済み
Convert yards to feet
The goal of this script is to convert a value given in yards to feet.
Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.
2年以上 前
解決済み
Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...
Area of a circle
Given the radius x, y would be the area of a circle.
Pi = 3.1416
2年以上 前
解決済み
2倍してみよう - ここからスタート!
初めにこの問題を試してみよう。
入力としてxを与え、それを2倍して結果をyに代入せよ。
Examples:
Input x = 2
Output y is 4
Input x = 17
Output y is 34
...
2年以上 前
解決済み
Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns.
E...
2年以上 前
解決済み
Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero?
Clue:
He was the first in the line ...
2年以上 前
解決済み
Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.
2年以上 前
解決済み
Sum of first n positive integers
Given n, find the sum of first n positive integers
Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55