็How to convert c++ to matlab fromthis code
이전 댓글 표시
#include<stdio.h>
int main(){
int i=1,number=0,b=9;
printf("Enter a number: ");
scanf("%d",&number);
while(i<=10){
printf("%d \n",(number*i));
i++;
}
return 0;
}
댓글 수: 2
Yalaw M.
2021년 2월 11일
Walter Roberson
2021년 2월 11일
What have you reached so far? It would be a waste to write a semester's worth of lectures on binary arithmetic if you simply forgot for a moment that I recommended that you read the matlab documentation about "while"
답변 (1개)
Walter Roberson
2021년 2월 11일
0 개 추천
There is no matlab equivalent of that code. That code relies on the standard input stream, but matlab does not have input streams.
meanwhile research input() and while and fprintf()
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!