using fprint with prompt

9 views (last 30 days)
Dai Nguyen
Dai Nguyen on 2 Sep 2020
Commented: Dai Nguyen on 2 Sep 2020
I tried to use fprint with prompt to print out the volume of a cubic with a side length provided by the user
  1 Comment
Dai Nguyen
Dai Nguyen on 2 Sep 2020
for some reason it didn't allow me, pls help

Sign in to comment.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 2 Sep 2020
fprintf('The volumn of the cubic is: %d',v)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!