C-and-Cpp/C2/Arithmetic-Operators/Khasi
From Script | Spoken-Tutorial
Time | Narration | |
00:01 | Ngi pdiang sngewbha ia phi sha ka Spoken Tutorial halor kaArithmetic Operators in C And C++. | |
00:07 | Ha kane ka jinghikai, ngin pule shaphang: | |
00:10 | Arithmetic operators kum '+' Addition: e.g. a+b. | |
00:14 | '-' Subtraction: e.g. a-b. | |
00:18 | '/' Division: e.g. a/b. | |
00:20 | '*' Multiplication: e.g. a*b. | |
00:24 | '%' Modulus: e.g. a%b. | |
00:27 | Ban buhjingkynmaw ia kane ka jinghikai, Ngan pyndonkam da ka: Ubuntu 11.10 kum ka operating system | |
00:32 | gcc bad g++ Compiler version 4.6.1 in Ubuntu. | |
00:38 | Mynta ngan pyni kumno ban pyndonkam ia kine ki arithmetic operations da ka jingiarap jong ka C program. | |
00:44 | Nga lah dep thoh ia ka prokram. | |
00:47 | Te, Ngan plie ia ka editor bad ngan batai ia u code. | |
00:49 | Ha kane ka C prokram jong ka arithmetic operators. | |
00:56 | Ha kaba nyngkong jong ki artylli ki statements, ki variables la pynpaw bad batai. | |
01:02 | Ha ka kawei pat ka statement, | |
01:04 | a la assigned ia u value jong u 5. | |
01:06 | b la assigned ia u value jong u 2. | |
01:10 | Mynta ngin peit kumno ka addition operator ka treikam. | |
01:14 | c u bat ia ka sum jong u a and b. | |
01:19 | Ka printf statement ka pyni ia ka sum jong u a and b ha ka screen. | |
01:28 | Hangne % dot 2f ka provides ia ka precision jong ar tylli ki digits hadien u decimal point. | |
01:37 | Ha kane ka statement ka ba bud, c u bad ia ka jingmih jong u a bad b. | |
01:43 | Ka printf statement ka pyni ia ka jingmih jong u a bad b ha ka screen. | |
01:48 | To ngin peit kumno kine ki artylli ki operators ki treikam. | |
01:52 | Ngin comment ia kine ki lain. | |
01:55 | Type /* (slash asterisk) | |
02:01 | */ | |
02:05 | Click Save. | |
02:07 | Save ia ka phail ha ka extension .c (dot c). | |
02:10 | Nga lah save ia ka phail jong nga da arithmetic.c. | |
02:15 | Plie ia ka terminal window da kaba nion Ctrl, Alt and T keys ha kajuh ka por. | |
02:22 | Ban lumlang ia u code, type kumne ha ka terminal. | |
02:27 | gcc space arithmetic dot c space minus o space arith | |
02:38 | Nion Enter. | |
02:40 | Ban execute ia u code, type ./arith (dot slash arith). | |
02:48 | Nion Enter. | |
02:50 | Ka jingmih lah pyni ha ka screen. | |
02:53 | Ka pynpaw,Sum of 5 and 2 is 7.00 bad | |
02:59 | Product of 5and 2 is 10.00. | |
03:03 | Mynta phin pyrshang ia ka subtraction operator da lade. | |
03:08 | Pyrshang ban bujli ia u addition operator da ka subtraction operator. | |
03:13 | Phi dei ban ioh ia ka result kum 3. | |
03:18 | Phai biang sha ka prokram bad ka ka set ba khatduh jong ka statements. | |
03:23 | Mynta, ngan batai ia u code nakabynta ka division. | |
03:26 | Weng noh ia ki lain comments hangne. | |
03:34 | Ha kine ki statements, c u bat ia ka value jong u integer division jong u a by b. | |
03:40 | Sngewbha kynmaw ba hapoh ka integer division ka fractional part la truncated. | |
03:47 | Ka printf statement ka pyni ia ka division output jong ka screen. | |
03:57 | Ha kane ka statement ngi perform real division. | |
04:02 | Hangne u wei na ki operands u hap ban shat kum as float. | |
04:10 | Ngi lah type-cast variable a. | |
04:13 | Mynta a un hap long kum u float variable naka bynta ka single operation. | |
04:22 | Ka printf statement ka pyni ia ka output jong ka real division ha ka screen. | |
04:30 | Type return 0; bad khang noh ia u curly bracket ba khatduh. | |
04:37 | Click Save. | |
04:40 | Phai biang sha ka terminal ban compile bad execute ia u code. | |
04:45 | Ban compile, typegcc space arithmetic dot c minus o space arith. Nion Enter. | |
04:59 | Ban execute ia u code, type ./arith. Nion Enter. | |
05:05 | Ia ka output yn pyni ha ka screen. | |
05:08 | Ngilah don ki output ba hashuwa jong ki addition bad multiplication operators. | |
05:16 | Ngi don u integer Division of 5 by 2 is 2. | |
05:22 | Ngi lah ban iohi ba hapoh u integer division ia ka bynta jong ka fractional la truncated. | |
05:29 | Kumta ngin don ki real division jong u 5 by 2 is 2.5. | |
05:35 | Ha ka real division, ka result ka long kumba kwah. | |
05:37 | Ngi pyndonkam da ka type-casting ban ioh ia kine ki results. | |
05:45 | Tharai mynta, Nga kwah ban thoh ia ka juh ka prokram ha C++. | |
05:50 | To ngin peit lada nga lah ban pyndonkam da u juh u code ha C++ ruh? | |
05:54 | To ngin ia wad. | |
05:56 | To ngan phai biang sha ka editor. | |
06:00 | Hangne u C++ code. | |
06:05 | Peitbniah ba ka header ka iapher na ka C phail header. | |
06:12 | namespace lapyndonkam ruh hangne. | |
06:18 | Bad ruh, peitbniah ba ka output statement ha ka C++ ka long cout. | |
06:25 | Te, kyrpang na kine ki jingiapher, ki artylli ki codes ki iasyriem bha. | |
06:32 | Click Save. Peit bha ban save ia ka phail badon ka extension .cpp. | |
06:37 | Nga lah save ia ka phail jong nga kum arithmetic.cpp. | |
06:41 | To ngin execute ia u code bad peit kaei ka result ba ngi ioh. | |
06:49 | Plie ia ka terminal bad type g++ space arithmetic dot cpp space minus o arith . Nion Enter. | |
07:09 | Ban execute ia u code, type ./ arith. Nion Enter. | |
07:16 | Ia ka output yn pyni hangne. | |
07:19 | Te, ngi iohi ba ki results ki iasyriem bad ka C prokram. | |
07:23 | Ka jingiapher ka long halor ka ka precisions jong ka outputs. | |
07:29 | To ngin batai lyngkot ia ka jinghikai. | |
07:32 | Ha kane ka jinghikai ngi la nang ban pyndonkam ia ki arithmetic operators. | |
07:36 | Kum ka assignment: | |
07:38 | Thoh ia ka prokram ban pyni ia ka jingpyndonkam jong ka modulus operator. | |
07:42 | Sngewbha ban kynmaw ba ka Modulus operator ka wad ia u remainder jong u division. e.g. c = a % b; | |
07:50 | Phi dei ban ioh ia ka result kum 1. | |
07:55 | Peit ia ka video ba la ai ha ka link harum. | |
07:57 | Kan batai lyngkot shaphang ka Spoken Tutorial project. | |
08:00 | Lada phim don ia ka bandwidth ba biang, phi lah ban download bad peit pat ia ka. | |
08:05 | Ka Spoken Tutorial project team: * Ka pynlong ia ki jinghikai da kaba pyndonkam da ki spoken tutorials. | |
08:09 | ka ai syrnod ia kiba jop ia ka online test. | |
08:14 | Na bynta ka jingtip ba kham bniah thoh sha
contact@spoken-tutorial.org | |
08:20 | “Spoken Tutorial”ka dei kawei ka bynta jong ka project kren ha u nonghikai. | |
08:25 | La kyrshan ia kane ka project da ka National Mission on Education through ICT, MHRD, Government of India. | |
08:30 | Shuh shuh ki jingtip halor kane phin ioh na kane ka link ba la ai : | |
08:33 | spoken hyphen tutorial dot org slash NMEICT hyphen Intro | |
08:41 | La pynkylla sha ka ka khasi da Godwin pyrbot bad nga i John Nongkynrih, ngan pynkut noh | Khublei shibun ia ka jingiasnohkti lang jong phi. |