Advertisement
plirof2

BASIC lesson - PRINT,LET,calculations webslides print let for

Jan 30th, 2023 (edited)
2,265
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ZXBasic 13.08 KB | None | 0 0
  1. 5 REM ==== BASIC lesson2 =====
  2. 6 REM ==== PRINT,PRAXEIS,LET=====
  3. 10 PRINT "HELLO"
  4. 20 PRINT 10+25 
  5. 30 PRINT "TIMH=";10+25
  6. 40 LET A=10
  7. 50 LET B=25
  8. 60 PRINT "TIMH=";A+B
  9.  
  10. =========================================
  11. 10 PRINT "HELLO"
  12. 20 INPUT "ONOMA? ";A$
  13. 30 PRINT "HELLO ";A$
  14.  
  15. replace 10 INK 5
  16. 10 INK 5: BORDER 2
  17. 10 INK 5: BORDER 2:PAPER 6:CLS
  18.  
  19.  
  20. ===========================
  21. ============================
  22. ==========WEBSLIDES=========
  23. ==========zxbasic-lesson-PRINT_CALC_LET.html=============
  24. <!doctype html>
  25. <html lang="en" prefix="og: http://ogp.me/ns#">
  26.   <head>
  27.     <meta charset="utf-8">
  28.     <meta name="viewport" content="width=device-width, initial-scale=1">
  29.  
  30.     <!-- CLEAN MARKUP = GOOD KARMA.
  31.       Hi source CODE lover,
  32.  
  33.       you're a curious person and a fast learner ;)
  34.       LET's make something beautiful together. Contribute on Github:
  35.       https://github.com/webslides/webslides
  36.  
  37.       Thanks!
  38.     -->
  39.  
  40.     <!-- SEO -->
  41.     <title>WebSlides: Why WebSlides is so inspiring?</title>
  42.     <meta name="description" content="WebSlides is about good karma. Create your own HTML presentation instantly. Just the esentials.">
  43.  
  44.     <!-- URL CANONICAL -->
  45.     <!-- <link rel="canonical" href="http://your-url.com/permalink"> -->
  46.  
  47.     <!-- Google Fonts
  48.     <link href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,700,700i%7CMaitree:200,300,400,600,700&amp;subset=latin-ext" rel="stylesheet">
  49. -->
  50.     <!-- CSS Base -->
  51.     <link rel="stylesheet" type='text/css' media='all' href="static/css/webslides.css">
  52.  
  53.     <!-- Optional - CSS SVG Icons (Font Awesome) -->
  54.     <link rel="stylesheet" type="text/css" media="all" href="static/css/svg-icons.css">
  55.  
  56.  
  57.     <!-- FAVICONS -->
  58.     <link rel="shortcut icon" sizes="16x16" href="static/images/favicons/favicon.png">
  59.     <link rel="shortcut icon" sizes="32x32" href="static/images/favicons/favicon-32.png">
  60.     <link rel="apple-touch-icon icon" sizes="76x76" href="static/images/favicons/favicon-76.png">
  61.     <link rel="apple-touch-icon icon" sizes="120x120" href="static/images/favicons/favicon-120.png">
  62.     <link rel="apple-touch-icon icon" sizes="152x152" href="static/images/favicons/favicon-152.png">
  63.     <link rel="apple-touch-icon icon" sizes="180x180" href="static/images/favicons/favicon-180.png">
  64.     <link rel="apple-touch-icon icon" sizes="192x192" href="static/images/favicons/favicon-192.png">
  65.  
  66.     <!-- Android -->
  67.     <meta name="mobile-web-app-capable" content="yes">
  68.     <meta name="theme-color" content="#333333">
  69.   </head>
  70.   <body>
  71.  
  72.     <header role="banner">
  73.       <nav role="navigation">
  74.         <!-- <p class="logo"><a href="index.html" title="WebSlides">WebSlides</a></p> -->
  75. <h1 class="text-landing">BASIC</h1>
  76.       </nav>
  77.     </header>
  78.  
  79.     <main role="main">
  80.       <article id="webslides" class="vertical">
  81.  
  82.         <!-- Quick Guide
  83.           - Each parent <section> in the <article id="webslides"> element is an individual slide.
  84.           - Vertical sliding = <article id="webslides" class="vertical">
  85.           - <div class="wrap"> = container 90% / <div class="wrap size-50"> = 45%;
  86.         -->
  87.  
  88.         <section>
  89.           <!--.wrap = container (width: 90%) -->
  90.           <div class="wrap aligncenter">
  91.             <h1 class="text-landing">BASIC</h1>
  92.             <pre class="text-intro">
  93.  
  94. 10 PRINT "HELLO"
  95. <B>20 PRINT 10+25 </B>
  96.  
  97.             </pre>
  98.  
  99.           </div>
  100.           <!-- .END .wrap -->
  101.         </section>
  102.         <section>
  103.           <!--.wrap = container (width: 90%) -->
  104.           <div class="wrap aligncenter">
  105.             <h1 class="text-landing">BASIC</h1>
  106.             <pre class="text-intro">
  107.  
  108.  
  109. 10 PRINT "HELLO"
  110. 20 PRINT 10+25  
  111. <B>30 PRINT "TIMH=";10+25</B>
  112.  
  113.             </pre>
  114.           </div>
  115.           <!-- .END .wrap -->
  116.         </section>        
  117.         <section>
  118.           <!--.wrap = container (width: 90%) -->
  119.           <div class="wrap aligncenter">
  120.             <pre class="text-intro">
  121.  
  122. 10 PRINT "HELLO"
  123. 20 PRINT 10+25  
  124. 30 PRINT "TIMH=";10+25
  125. <B>40 LET A=10
  126. 50 LET B=25</B>
  127.             </pre>
  128.           </div>
  129.           <!-- .END .wrap -->
  130.         </section>
  131.         <section>
  132.           <!--.wrap = container (width: 90%) -->
  133.           <div class="wrap aligncenter">
  134.             <pre class="text-intro">
  135.  
  136. 10 PRINT "HELLO"
  137. 20 PRINT 10+25  
  138. 30 PRINT "TIMH=";10+25
  139. 40 LET A=10
  140. 50 LET B=25
  141. <B>60 PRINT "TIMH=";A+B</B>
  142.  
  143.             </pre>
  144.           </div>
  145.           <!-- .END .wrap -->
  146.         </section>        
  147.         <section>
  148.           <!--.wrap = container (width: 90%) -->
  149.           <div class="wrap aligncenter">
  150.             <pre class="text-intro">
  151. 5 REM A-->GOLD ,B--.ENERGY             
  152. 10 PRINT "HELLO"
  153. 20 PRINT 10+25  
  154. 30 PRINT "TIMH=";10+25
  155. 40 LET <B>GOLD</B>=10
  156. 50 LET <B>ENERGY</B>=251
  157. 60 PRINT <B>"GOLD=";GOLD
  158. 70 PRINT "ENERGY=";ENERGY</B>
  159.  
  160.             </pre>
  161.           </div>
  162.           <!-- .END .wrap -->
  163.         </section>
  164.         <section>
  165.           <!--.wrap = container (width: 90%) -->
  166.           <div class="wrap aligncenter">
  167.             <pre class="text-intro">
  168.  
  169.             </pre>
  170.           </div>
  171.           <!-- .END .wrap -->
  172.         </section>                
  173.         <section>
  174.           <!--.wrap = container (width: 90%) -->
  175.           <div class="wrap aligncenter">
  176.             <pre class="text-intro">
  177.  
  178.             </pre>
  179.           </div>
  180.           <!-- .END .wrap -->
  181.         </section>  
  182.  
  183.  
  184.       </article>
  185.     </main>
  186.     <!--main-->
  187.  
  188.     <!-- Required -->
  189.     <script src="static/js/webslides.js"></script>
  190.  
  191.     <!-- Autoslide 5 seconds. IF you don't want autoslide, remove: {autoslide: 5000} -->
  192.     <script>
  193.       //window.ws = new WebSlides({ autoslide: 5000 });
  194.       window.ws = new WebSlides({ });
  195.     </script>
  196.  
  197.     <!-- OPTIONAL - svg-icons.js (fontastic.me - Font Awesome AS svg icons)
  198.     <script defer src="static/js/svg-icons.js"></script>
  199.     -->
  200.  
  201.   </body>
  202. </html>
  203.  
  204. ===========================
  205. ============================
  206. ==========WEBSLIDES=========
  207. ==========zxbasic-lesson-FOR2.html=============
  208. <!doctype html>
  209. <html lang="en" prefix="og: http://ogp.me/ns#">
  210.   <head>
  211.     <meta charset="utf-8">
  212.     <meta name="viewport" content="width=device-width, initial-scale=1">
  213.  
  214.     <!-- CLEAN MARKUP = GOOD KARMA.
  215.       Hi source CODE lover,
  216.  
  217.       you're a curious person and a fast learner ;)
  218.       LET's make something beautiful together. Contribute on Github:
  219.       https://github.com/webslides/webslides
  220.  
  221.       Thanks!
  222.     -->
  223.  
  224.     <!-- SEO -->
  225.     <title>WebSlides: Why WebSlides is so inspiring?</title>
  226.     <meta name="description" content="WebSlides is about good karma. Create your own HTML presentation instantly. Just the esentials.">
  227.  
  228.     <!-- URL CANONICAL -->
  229.     <!-- <link rel="canonical" href="http://your-url.com/permalink"> -->
  230.  
  231.     <!-- Google Fonts
  232.     <link href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,700,700i%7CMaitree:200,300,400,600,700&amp;subset=latin-ext" rel="stylesheet">
  233. -->
  234.     <!-- CSS Base -->
  235.     <link rel="stylesheet" type='text/css' media='all' href="static/css/webslides.css">
  236.  
  237.     <!-- Optional - CSS SVG Icons (Font Awesome) -->
  238.     <link rel="stylesheet" type="text/css" media="all" href="static/css/svg-icons.css">
  239.  
  240.  
  241.     <!-- FAVICONS -->
  242.     <link rel="shortcut icon" sizes="16x16" href="static/images/favicons/favicon.png">
  243.     <link rel="shortcut icon" sizes="32x32" href="static/images/favicons/favicon-32.png">
  244.     <link rel="apple-touch-icon icon" sizes="76x76" href="static/images/favicons/favicon-76.png">
  245.     <link rel="apple-touch-icon icon" sizes="120x120" href="static/images/favicons/favicon-120.png">
  246.     <link rel="apple-touch-icon icon" sizes="152x152" href="static/images/favicons/favicon-152.png">
  247.     <link rel="apple-touch-icon icon" sizes="180x180" href="static/images/favicons/favicon-180.png">
  248.     <link rel="apple-touch-icon icon" sizes="192x192" href="static/images/favicons/favicon-192.png">
  249.  
  250.     <!-- Android -->
  251.     <meta name="mobile-web-app-capable" content="yes">
  252.     <meta name="theme-color" content="#333333">
  253.   </head>
  254.   <body>
  255.  
  256.     <header role="banner">
  257.       <nav role="navigation">
  258.         <!-- <p class="logo"><a href="index.html" title="WebSlides">WebSlides</a></p> -->
  259. <h1 class="text-landing">BASIC</h1>
  260.       </nav>
  261.     </header>
  262.  
  263.     <main role="main">
  264.       <article id="webslides" class="vertical">
  265.  
  266.         <!-- Quick Guide
  267.           - Each parent <section> in the <article id="webslides"> element is an individual slide.
  268.           - Vertical sliding = <article id="webslides" class="vertical">
  269.           - <div class="wrap"> = container 90% / <div class="wrap size-50"> = 45%;
  270.         -->
  271.         <section>
  272.           <!--.wrap = container (width: 90%) -->
  273.           <div class="wrap aligncenter">
  274.             <pre class="text-intro">
  275.               SHOW NUMBERS FROM 1-10 ΤΥΠΩΣΤΕ ΤΟΥΣ ΑΡΙΘΜΟΥΣ ΑΠΟ ΤΟ 1 ως το 10
  276.             </pre>
  277.           </div>
  278.           <!-- .END .wrap -->
  279.         </section>
  280.  
  281.         <section>
  282.           <!--.wrap = container (width: 90%) -->
  283.           <div class="wrap aligncenter">
  284.             <pre class="text-intro">
  285. 10 PRINT 1
  286. 20 PRINT 2
  287. 30 PRINT 3
  288. 40 PRINT 4
  289. ...
  290. 100 PRINT 10
  291.             </pre>
  292.           </div>
  293.           <!-- .END .wrap -->
  294.         </section>  
  295.         <section>
  296.           <!--.wrap = container (width: 90%) -->
  297.           <div class="wrap aligncenter">
  298.             <pre class="text-intro">
  299. 10 LET I = 1
  300. 20 PRINT I
  301. 25 LET I = I + 1
  302. 30 PRINT I
  303. 35 LET I = I + 1
  304. 40 PRINT "I = "; I
  305. 45 LET I = I + 1
  306. 50 PRINT "I = "; I
  307. ...
  308. 100 LET I = I + 1
  309. 105 PRINT "I = "; I
  310.  
  311.             </pre>
  312.           </div>
  313.           <!-- .END .wrap -->
  314.         </section>  
  315.  
  316.         <section>
  317.           <!--.wrap = container (width: 90%) -->
  318.           <div class="wrap aligncenter">
  319.             <pre class="text-intro">
  320. IF WE WANTED 1000 ???? ΑΝ ΘΕΛΑΜΕ ΤΟΥΣ ΑΡΙΘΜΟΥΣ 1-1000;
  321.             </pre>
  322.           </div>
  323.           <!-- .END .wrap -->
  324.         </section>  
  325.  
  326.         <section>
  327.           <!--.wrap = container (width: 90%) -->
  328.           <div class="wrap aligncenter">
  329.             <h1 class="text-landing">BASIC</h1>
  330.             <pre class="text-intro">
  331. 10 LET I = 1
  332. 20 PRINT "I = "; I
  333. 30 LET I = I + 1
  334. <b>40 IF I <= 10 THEN GOTO 20 </b>
  335. 50 STOP
  336.             </pre>
  337.  
  338.           </div>
  339.           <!-- .END .wrap -->
  340.         </section>
  341.         <section>
  342.           <!--.wrap = container (width: 90%) -->
  343.           <div class="wrap aligncenter">
  344.             <h1 class="text-landing">BASIC</h1>
  345.             <pre class="text-intro">
  346.  
  347. <b>10 FOR I = 1 TO 10
  348. 30 PRINT "I = "; I
  349. 50 NEXT I</b>
  350.  
  351.             </pre>
  352.           </div>
  353.           <!-- .END .wrap -->
  354.         </section>        
  355.         <section>
  356.           <!--.wrap = container (width: 90%) -->
  357.           <div class="wrap aligncenter">
  358.             <pre class="text-intro">
  359. 10 FOR I = 1 TO 10 <B>STEP 2</B>
  360. 30 PRINT "I = "; I
  361. 50 NEXT I
  362.             </pre>
  363.           </div>
  364.           <!-- .END .wrap -->
  365.         </section>
  366.         <section>
  367.           <!--.wrap = container (width: 90%) -->
  368.           <div class="wrap aligncenter">
  369.             <pre class="text-intro">
  370. <B>10 FOR I = 1 TO 10
  371. 20 FOR K = 1 TO 10
  372. 30 PRINT X;"*";K;"=";X*K
  373. 40 NEXT K
  374. 50 NEXT I</B>
  375.  
  376.             </pre>
  377.           </div>
  378.           <!-- .END .wrap -->
  379.         </section>        
  380.         <section>
  381.           <!--.wrap = container (width: 90%) -->
  382.           <div class="wrap aligncenter">
  383.             <pre class="text-intro">
  384. 10 FOR I = 100 TO 0 STEP -5
  385. 30 PRINT "The value of I = "; I
  386. 50 NEXT I
  387.  
  388.             </pre>
  389.           </div>
  390.           <!-- .END .wrap -->
  391.         </section>
  392.         <section>
  393.           <!--.wrap = container (width: 90%) -->
  394.           <div class="wrap aligncenter">
  395.             <pre class="text-intro">
  396.  
  397.             </pre>
  398.           </div>
  399.           <!-- .END .wrap -->
  400.         </section>                
  401.         <section>
  402.           <!--.wrap = container (width: 90%) -->
  403.           <div class="wrap aligncenter">
  404.             <pre class="text-intro">
  405.  
  406.             </pre>
  407.           </div>
  408.           <!-- .END .wrap -->
  409.         </section>  
  410.  
  411.  
  412.       </article>
  413.     </main>
  414.     <!--main-->
  415.  
  416.     <!-- Required -->
  417.     <script src="static/js/webslides.js"></script>
  418.  
  419.     <!-- Autoslide 5 seconds. IF you don't want autoslide, remove: {autoslide: 5000} -->
  420.     <script>
  421.       //window.ws = new WebSlides({ autoslide: 5000 });
  422.       window.ws = new WebSlides({ });
  423.     </script>
  424.  
  425.     <!-- OPTIONAL - svg-icons.js (fontastic.me - Font Awesome AS svg icons)
  426.     <script defer src="static/js/svg-icons.js"></script>
  427.     -->
  428.  
  429.   </body>
  430. </html>
  431.  
  432.  
  433. ===========================
  434. ============================
  435. ==========WEBSLIDES=========
  436. ==========zxbasic-lesson-FOR2.html=============
  437. ===========================
  438. ============================
  439. ==========WEBSLIDES=========
  440. ==========zxbasic-lesson-FOR2.html=============
  441. ===========================
  442. ============================
  443. ==========WEBSLIDES=========
  444. ==========zxbasic-lesson-FOR2.html=============
  445.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement