1.2. var x; //ประกาศตัวแปร x, โดยที่ยังไม่มีการใส่ค่า var y = 2; //ประกาศตัวแปร y ให้มีค่าเท่ากับ
2. 4.ภาษา R
2.1. R เป็นภาษาคอมพิวเตอร์ภาษาหนึ่งที่เป็นที่ใช้คำนวณทางสถิติ เพราะเป็นโปรแกรมโอเพนซอร์ท (open source) ที่ใช้งานได้ฟรี รองรับระบบปฎิบัติการหลายระบบ ปฎิบัติการทั้ง Windows Mac OS หรือ Linux โดยการทำงานของ R ที่นิยมเนื่องจากมี built-in function ทางด้านสถิตที่มีปริมาณมาก รวมถึง สถิติที่ใช้ในการวิเคราะห์ข้อมูลขนาดใหญ่ และ มีความสามารถแสดงผลการทำงานในรูปแบบกราฟ
2.2. apple <- c('red','green',"yellow") print(apple)
4.2. long int SomeFunction(); /* int OtherFunction(); */ /* int */ CallingFunction() { long int test1; register /* int */ test2; test1 = SomeFunction(); if (test1 > 0) test2 = 0; else test2 = OtherFunction(); return test2; }
5.2. long int SomeFunction(); /* int OtherFunction(); */ /* int */ CallingFunction() { long int test1; register /* int */ test2; test1 = SomeFunction(); if (test1 > 0) test2 = 0; else test2 = OtherFunction(); return test2; }