Hire Our Expert Programmer & Technical Writer to do your Capstone Project
+1 vote
496 views
in Programming Languages & Algorithms by

1 Answer

+1 vote
by (user.guest)
selected by (user.guest)
 
Best answer

I’m going to answer this using Javascript.

<html>

      <head>

          <meta charset = “utf-8” >

          <title>program to find largest integer</title>

           <script type = “text/ javascript”>

           var x;  // number one

 var y;  // number two

           var z;  // number three

           x = window.prompt (“Enter first number”);

           y = window.prompt (“Enter second number”);

           z = window.Prompt (“Enter third number”);

   //This helps the program to understand that the variables x, y,z are type integer

           x = parseInt(x);

           y = parseInt(y);

           z = parseInt(z);

if  ( x > y) {

     document.write(x);

 if (y>z)

    document.write(y);

else

    document.write(z);

}

</script>

 

 


Related questions

+1 vote
1 answer 3.0k views
Welcome to CPENTalk.com

Disclaimer: Every user is solely responsible for anything that he/she posts or uploads on CPENTalk.
...