这个作业属于哪个课程https://edu.cnblogs.com/campus/sdscfz/SF4/
这个作业要求在哪里 https://edu.cnblogs.com/campus/sdscfz/SF4/homework/12943
这个作业的目标 第三次作业-两个数加和案例
html
    <head>
        <body>
            <title></title>
            <script>
                num1 = +prompt('请输入一个数字')
                num2 = +prompt('请输入第二个数字')
                console.log("两个数相加的值为:"+(num1+num2))
                document.write("两个数相加的值为:"+(num1+num2))
            </script>
        </body>
    </head>
</html>

 

posted on 2023-03-14 09:27  刘牧豪  阅读(20)  评论(0)    收藏  举报