1 / 20

BTÖ216-Görsel Programlama

BTÖ216-Görsel Programlama. Veri türleri, Değişken ve Sabit Kavramları, Operatörler. Veri türleri. Değişkenler. Integer -32768 ile32768. Tanımlanması int x; x = 765; int x = 765;. Long -2147483648 ile 2147483648. long x; x = 76543210;. Float float x; x = 77.932;. Bool

ewells
Download Presentation

BTÖ216-Görsel Programlama

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BTÖ216-Görsel Programlama Veri türleri, Değişken ve Sabit Kavramları, Operatörler

  2. Veri türleri

  3. Değişkenler • Integer • -32768 ile32768. • Tanımlanması • int x; • x = 765; • int x = 765;

  4. Long • -2147483648 ile 2147483648. • long x; • x = 76543210;

  5. Float • float x; • x = 77.932;

  6. Bool • 1 (true) or 0 (false). • bool x; • x = 0;

  7. Char • char x; • x = ‘J‘;

  8. String • string x; • x = “ROBOTC programı”;

  9. Sabit tanımlama • Constint x=4;

  10. Operatörler (Operators) • Operatorsenable you to work with data and compare information. • Arithmetic (Aritmetik) • Assignment (Atama) • Comparison (Karşılaştırma) • Logical (Mantık) • String (Dizi)

  11. ArithmeticOperators

  12. Assignment Operators • Assignment operators are used to assign a value. These will be used extensively later when we come tousing variables

  13. ComparisonOperators • Comparison operators are used to compare two things.Each of these returns either true or false, depending on whether theoutcome of the comparison is true or false.

  14. LogicalOperators

  15. Logical Operators

  16. String Operators • String = Snippets of text • string1 = "Hello " • string2 = "World!"

  17. string s1 = “Ahmet";                 nxtDisplayString(3, "%s", s1);          wait1Msec(500);                      

  18. Random fonksiyonu • Rastgele sayı üretme • random(5); • taskmain(); • { • int x=random(50); • nxtDisplayTextLine(3, "%d", x); • wait1Msec(2000); • }

More Related