![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/14859927_1550943527638_DEF.jpg)
Yusuf Azzam
自 2019 起处于活动状态
Followers: 0 Following: 0
Feeds
已回答
A code will prompt the user to try to guess my favourite colour and after 3 goes say 3 trials over, but i want to display a message after each incorrect attempt saying "Incorrect try again". How do I do this? (New user)
I've got it! After 'disp('three trials over')' I add: else disp('incorrect')
A code will prompt the user to try to guess my favourite colour and after 3 goes say 3 trials over, but i want to display a message after each incorrect attempt saying "Incorrect try again". How do I do this? (New user)
I've got it! After 'disp('three trials over')' I add: else disp('incorrect')
5 years 前 | 0
| 已接受
提问
A code will prompt the user to try to guess my favourite colour and after 3 goes say 3 trials over, but i want to display a message after each incorrect attempt saying "Incorrect try again". How do I do this? (New user)
This is code i have got so far: fav = 'red' ; str = 0 ; count = 0 ; while str == 0 count = count+1 ; prompt = ...
5 years 前 | 2 个回答 | 0