request integer inputs to put into the function

Hi I dont know how to request integer inputs to put into the factional equation. Can anyone help me learn about how to ask for integer inputs ? Can we solve a factional with 2 integers ?
this is my code
m= input('enter the integer value of m')
n=input('enter the integer value of n');
for i=n:m
t=n*i;
end

回答 (1 件)

madhan ravi
madhan ravi 2020 年 9 月 15 日

1 投票

doc floor % and co

3 件のコメント

Dai Nguyen
Dai Nguyen 2020 年 9 月 15 日
will it work for factional calculation?
madhan ravi
madhan ravi 2020 年 9 月 15 日
'Enter the integer value of m'
madhan ravi
madhan ravi 2020 年 9 月 15 日
I suggest you to read the docs.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

製品

タグ

質問済み:

2020 年 9 月 15 日

コメント済み:

2020 年 9 月 15 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by