Design a while loop Tree diagram flowchart and pseudocode th

Design a while loop (Tree diagram, flowchart, and pseudocode) that lets the user enter a number. The number should be multiplied by 10, and the result stored in a variable named product. The loop should iterate as long as product contains a value less than 100.

Solution

#include<stdio.h>

#include<conio.h>

int main()

{

int n;

printf(\"Enter a number)\";

scanf(\"%d\",n)

while ( n<100)

{

n = n*10

}

return n;

}

Design a while loop (Tree diagram, flowchart, and pseudocode) that lets the user enter a number. The number should be multiplied by 10, and the result stored in

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site