Course Solutions Uncategorized (Solved) : Change Loop Loop Code Int Main Int Number Printf Enter Size Scanf D Number Int 1 Q27826250 . . . .

(Solved) : Change Loop Loop Code Int Main Int Number Printf Enter Size Scanf D Number Int 1 Q27826250 . . . .

 

How to change my for loop into while loop ?

code:

int main() {
int number;
printf(“Enter size: “);
scanf(“%d”,&number);  
for (int i=1;i<=number-1;i++) {
printf(“%sn”,”*”);
}
for (int i=1;i<=number;i++) {
printf(“%s”,”*”);
}
return 0;
}

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 1 Problem 1 Provided Set Training Example Unknown Target Function Xi X2 Y Row Indicates Va Q34637382 . . . .(Solved) : 1 Problem 1 Provided Set Training Example Unknown Target Function Xi X2 Y Row Indicates Va Q34637382 . . . .

<p><img alt="1 Problem 1 We are provided with a set of training example for the unknown target function (Xi, X2) Y. Each row indicates the" src="https://media.cheggcdn.com/media%2F546%2F546328e1-53ad-4d0a-921d-c6301bfd119b%2FphpL6MUqG.png" style="height:685px;width:838px;" aria-describedby="d3f"/></p><p>Information Theory Problem</p>1

(Solved) : 1 Based Problem 2 Statement Provide Following Write Character Values Interval 0 255 File N Q29053155 . . . .(Solved) : 1 Based Problem 2 Statement Provide Following Write Character Values Interval 0 255 File N Q29053155 . . . .

<p style="margin-left:18pt;">1)Based on problem 2 statement,provide the following:</p><p style="margin-left:72pt;">a.Write all the character values inthe interval [0,255] into a file named “charValues” in charformat.</p><p style="margin-left:72pt;">b.Write all the numbers in theinterval [0,200]