Write a for loop that will display 5 times the sentence The number of repetitions of this sentence is" followed by how many times it has been repeated. Use disp and num2str functions.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 13PP
icon
Related questions
Question
i need the answer quickly
Write a for loop that will display 5 times the sentence
The number of repetitions of this sentence is" followed
by how many times it has been repeated. Use disp and
num2str functions.
11
Transcribed Image Text:Write a for loop that will display 5 times the sentence The number of repetitions of this sentence is" followed by how many times it has been repeated. Use disp and num2str functions. 11
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning