Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello I am trying to create a game using Matlab, but I have problem using while condition. Why I need to type number 1 two

Hello

I am trying to create a game using Matlab, but I have problem using while condition. Why I need to type number 1 two times in order to do the condition?

image text in transcribed

MATLAB R2016a academic use PLOTS EDITOR PUBLISH Insert Find Files Run Section New Open Save Compare 5 i Go To Comment Breakpoints Run Run and Advance Run and Indent Find New folder (2) Editor HANew folder (2)Amain game.m* Current Folder main-game m Tries m Untitled4 x 91 main m Name 1 1: 5: 6:10:11:15 2 Level 11:s1 Main game m correct answer- main game asV main game m 4 Wrong answer 0 myscore.m myscore1.ma 6 01 input enter a numbeer myscore2.m 7 100 mytotalscore.m 8 While Q1 r; Tries,m 01 input enter a numbe if 01 10 disp ('good') break 13 end 14 end 15 16 17 main game,m (Script Search Documentation Ln Col T-IV/.F/IV

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

What is a copyright?

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago