How to solve this question?
9 ビュー (過去 30 日間)
古いコメントを表示
You are required to write a script to add two ten-digit random integer and print the result. Use
for-loop and if-else in your script.
1 件のコメント
回答 (1 件)
gonzalo Mier
2019 年 6 月 26 日
Oh, a really interesting problem. Lets try to solve it as easy as possible...
Lets propose some ideas:
- Sum two constant numbers in a for loop and when your teacher asks, just tell him you use a normal very thin.
- Use the function randsample(prime(899999999)+100000000,1) to obtain each of the random values.
- Record your voice and pick some values from there.
- Plot the values as string in a plot ui.
- Or better, plot one of each number in a different subplot.
- Even better, codify each value as different shape form that has as many sides as your number. Remenber, you don't need to make all the sides equal.

0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!