how to make a program that multiplies two numbers using repetitive addition. and Creating two separate flowcharts that multiplies two numbers using repetitive addition using these two structures: 1. Do-While or Do-Until Loop 2. While Loop ????????????????????????????????????????? help ..
@amistre64 help please :)
input 1, input 2 var a = 0 for x = 1 to (input 1) a = a + (input 2) display a
most loops are basically the same structure; a few tweaks would let you modify it for the specifics
uhmmp. okey :D
<html> <input id="i1"><br> <input id="i2"><br> <input type = button value="add em up" onclick="addMe"><br> <script language=javascript> var a=0 function addMe() { var m = document.getElementById("i1").value * (-1) var n = document.getElementById("i2").value * (-1) for (x=1; x<= m; x=x+1) {a=a+n} alert(a) a=0 } </script> </html>
aww. i dont understand that pseudocode ..
thats not pseudocode ....
how to convert that to flowchart?
uhh im sorry i though its pseudocode
what i posted first was pseudocode i then transcribed it into html/javascript to create a program.
uhh ok
thank you @amistre64 :)
Join our real-time social learning platform and learn together with your friends!