Print Hello World N Times In Matlab

[Solved] Print Hello World N Times In Matlab | Matlab - Code Explorer | yomemimo.com
Question : print hello world n times in matlab

Answered by : rasel-ahmed-9kilyai1mdfd

n = input('Enter a number:');
for sentence = 1:n % have the indexing go from 1 to n, not reverse fprintf('%d. Hello world!\n', sentence); % print the index, and a newline \n
end

Source : | Last Update : Mon, 27 Jun 22

Answers related to print hello world n times in matlab

Code Explorer Popular Question For Matlab