PERL/C2/while-do-while-loops/Khasi
From Script | Spoken-Tutorial
Time | Narration |
00:01 | Ngi pdiangsngewbha iaphi sha ka spoken tutorial halor ka while and do-while loops ha ka Perl. |
00:06 | Ha kane ka jinghikai, ngin ia pule shaphang: |
00:09 | while loop ha ka Perl |
00:11 | do-while loop ha ka Perl . Nga pyndonkam da ka Ubuntu Linux 12.04 operating system bad ka Perl 5.14.2. |
00:20 | Ngan sa pyndonkam ruh ia ka gedit Text Editor. |
00:24 | Phi lah ban pyndonkam ia kano kano ka text editor katkum ka jingkwah jong phi. |
00:28 | Phi dei ban don ia ki jingtip ba donkam jong ki variables bad comments ha ka Perl. |
00:33 | Ka jingtip ia ka for bad foreach loops ha ka Perl kan long ka jingmyntoi. |
00:38 | Sngewbha leit sha ka jinghikai ba iadei jong ki spoken tutorials halor ka "Spoken Tutorial" website. |
00:43 | while loop ha ka Perl: |
00:45 | Ka while loop ka execute ia u block jong u code katba ka condition kadei true. |
00:50 | Ka syntax jong ka while loop kadei kumne harum - |
00:53 | while space open bracket condition close bracket |
00:58 | open curly bracket |
01:00 | U code u ban sa shah execute mynba ka condition kadei true |
01:04 | close curly bracket. |
01:07 | Te, kaei kaban jia lada ka condition kam treikam? Ka while loop kan sa exit khlem da execute ia u code uba don hapoh, wat tang shisien ruh. |
01:16 | Mynta to ngin ia peit ia ka nuksa jong kawhile loop. |
01:19 | Plie ia ka Terminal bad type: |
01:22 | gedit whileLoop dot pl space ampersand |
01:29 | Bad shon Enter. |
01:31 | Kane kan plie ia ka whileLoop.pl file ha ka gedit. |
01:34 | Mynta type ia u code harum: |
01:37 | hash exclamation mark slash u s r slash bin slash perl |
01:45 | shon Enter. |
01:47 | 'dollar i' ($i) equals to zero semicolon |
01:52 | bad shon Enter . |
01:54 | while open bracket dollar i less than or equal to four close bracket space |
02:04 | open curly bracket shon Enter bad type: |
02:08 | print space double quote Value of i colon dollar i backslash n double quote complete semicolon |
02:20 | shon Enter. |
02:22 | dollar i plus plus semicolon |
02:27 | shon Enter bad khang ia u curly bracket. |
02:31 | To ngan batai bniah ia u while loop. |
02:33 | Ngi lah initialized ia u variable 'i' sha 0. |
02:38 | Mynta, ngi lah ai ia ka condition na ka bynta ka while loop kum $i less than or equal to 4. |
02:46 | Lada ka 'condition' kadei true, u code uba don hapoh ka while loop un sa shah execute. |
02:52 | Kane kamut, ha ka sien kaba nyngkong ka while loop kan print ia u "Value of i: 0" ha ka terminal. |
03:01 | Nangta ka $i++ kan sa pynkiew ia u value jong u variable 'i' da one. |
03:08 | Sa shisien, ka loop condition $i<=4 kan sa shah evaluate. |
03:16 | Bad ka loop kan sa exit shisien ba u value jong u 'i' u lah long 5. |
03:22 | Ha kane ka bynta,while loop kan sa shah execute na ka bynta u i uba ia ryngkat ia 0, 1, 2, 3 bad 4. |
03:32 | Shon Ctrl+s ban save ia ka file. |
03:35 | Mynta, phai sha ka terminal. |
03:37 | Type ia kane harum ban check na ka bynta kano kano ka compilation lane ka syntax error: |
03:42 | perl hyphen c whileLoop dot pl |
03:47 | bad shon Enter. |
03:49 | U lain harum un sa paw ha ka terminal |
03:52 | whileLoop.pl syntax OK |
03:56 | Namar ba kam don ka compilation lane ka syntax error, ngin ia execute ia ka Perl script da kaba type: |
04:02 | perl whileLoop dot pl |
04:06 | bad shon Enter. |
04:09 | Ka output harum kan sa paw ha ka terminal. |
04:14 | Mynta, to ngin ia peit ia ka do-while loop. |
04:20 | Ka do..while statement barabor kan execute ia u code la kumno kumno shisien. |
04:25 | Nangta kan sa check ia ka condition bad bteng ia ka loop katba ka condition kadei true. |
04:30 | Ka syntax na ka bynta ka do-while loop kadei kumne harum: |
04:34 | do space |
04:36 | open curly bracket |
04:38 | U code u ban sa shah execute katba ka condition kadei true |
04:42 | close curly bracket nangta space |
04:45 | while space hapoh ki brackets condition bad nangta semicolon. |
04:50 | Plie ia ka Terminal bad type: |
04:54 | gedit doWhileLoop dot pl space ampersand |
05:03 | bad nangta shon Enter. |
05:05 | Kane kan sa plie ia ka doWhileLoop.pl file ha ka gedit. |
05:09 | Type ia u code: |
05:11 | hash exclamation mark slash u s r slash bin slash perl ShonEnter. |
05:21 | dollar i equals to zero semicolon shon Enter. |
05:27 | do space |
05:29 | open curly bracket Enter type: |
05:33 | print space double quote Value of i colon <space> dollar i backslash n double quote complete semicolon |
05:46 | shon Enter . |
05:48 | dollar i plus plus semicolon |
05:52 | shon Enter . |
05:54 | close curly bracket. |
05:56 | space while space open bracket dollar i less than or equal to four |
06:06 | close bracket semicolon. |
06:10 | Hangne ka jingbatai ba bniah jong ka do-while loop. |
06:13 | Ngi lah initialized ia u variable i sha 0. |
06:18 | Ha ka sien ba nyngkong, ka do-while loop kan print ia ka output kum 'Value of i colon 0' ha ka terminal khlem da check na ka bynta ka condition. |
06:28 | $i++ kan pynkiew ia u value jong u variable 'i' da one, man ba ka loop ka shah execute. |
06:36 | Ha ka sien ba ar, ka condition '$i' less than lane equal to 4 kan sa shah check. |
06:43 | Lada ka condition kadei True, ka loop kan sa shah execute biang. |
06:48 | Ha ka bynta jong ngi, ha ka sien ba ar ka output ba lah paw ha ka terminal kan long 'Value of i colon 1'. |
06:57 | Ka loop kan sa shah execute haduh ba ka condition kan dei False kata ynda u variable 'i' u long 5. |
07:05 | Shon Ctrl+s ban save ia ka file. |
07:09 | Mynta, phai sha ka terminal bad type ia kane harum ban check na ka bynta kano kano ka compilation lane ka syntax error. |
07:16 | perl hyphen c doWhileLoop dot pl |
07:21 | bad shon Enter. |
07:23 | U lain harum un sa paw ha ka terminal: |
07:26 | doWhileLoop.pl syntax OK |
07:30 | Namar ba kam don ka compilation lane ka syntax error, mynta ngin ia execute ia ka Perl script. |
07:36 | Type: perl doWhileLoop dot pl |
07:41 | bad shon Enter. |
07:43 | Ka output harum kan saw paw ha ka terminal |
07:48 | Mynta, to ngin ia peit ia ka jingiapher hapdeng u while bad do-while loops. |
07:53 | Ha ka Terminal, type: |
07:55 | gedit loop dot pl space ampersand |
08:01 | bad shon Enter. |
08:03 | Kane kan sa plie ia ka loop dot pl file ha ka gedit. |
08:07 | Mynta type ia u code ba la pyni. |
08:12 | Ngi la declare ia u variable count bad initialized ia u sha u zero. |
08:19 | Ha ka while loop condition, ngi ia check lada u variable count u heh ban ia u zero. |
08:29 | Ka condition kam dei true. Te, ka while loop code kan sa nym shah execute wat tang shisien ruh. |
08:36 | Ha ka do...while loop, nyngkong ngi ia execute ia u code bad nangta ngi check ia ka condition. |
08:44 | Te, u code un sa shah execute la kumno kumno shisien. |
08:49 | Nangta ka condition lada dei u variable count u heh ban ia u zero, u shah checked. |
08:57 | Ka condition kam dei True. Te, ka loop kan sa exit. |
09:02 | Mynta, shon Ctrl+s ban save ia ka file. |
09:05 | Mynta, phai sha ka terminal bad type ia kane harum ban check na ka bynta kano kano ka compilation lane ka syntax error. |
09:12 | perl hyphen c loop dot pl |
09:16 | bad shon Enter. |
09:19 | U lain harum un sa paw ha ka terminal. |
09:22 | loop dot pl syntax OK |
09:26 | Namar ba kam don kano kano ka compilation lane ka syntax error, to ngin ia execute ia kaPerl script |
09:31 | Da kaba type perl loop dot pl |
09:36 | bad shon Enter. |
09:38 | Ka output harum kan sa paw ha ka terminal. |
09:43 | I am in do-while loop |
09:46 | Hangne ngi lah ban iohi, ba kam don ka khubor jong ka output kaba pyni 'I am in while loop' . |
09:52 | Kane ka khubor kadei kaba ngi lah print hapoh ka 'while' loop. |
09:59 | Kane ka mut ba |
10:01 | Ka do-while loop kan execute la kumno kumno shisien hashwa ba kan evaluate ia ka condition |
10:07 | Katba ka while loop kan nym shah execute wat tang shisien ruh ynda ka condition ba lah ai kadei False. |
10:15 | Nga kyrmen ba ka jingiapher ka lah shai iaphi mynta. |
10:18 | Katto baroh kidei ba don ha while bad do-while loops. |
10:22 | To ngin ia batai kyllum. |
10:24 | Ha kane ka jinghikai, ngi la pule shaphang: |
10:26 | while loop bad do-while loop ha ka Perl |
10:29 | Da kaba pyndonkam ia ki sample programs |
10:31 | Hangne ka kam na ka bynta jong phi - |
10:33 | Print 'Hello Perl' |
10:35 | Haduh ba ka count jong ka variables kan poi 10 |
10:38 | Da kaba pyndonkam ia ka while loop bad do-while loops. |
10:41 | Peit ia ka video kaba don ha ka link harum. |
10:45 | Ka batai kyllum ia ka Spoken Tutorial project. |
10:49 | Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka hadien. |
10:53 | Ka kynhun jong ka Spoken Tutorial: |
10:56 | Ka pynlong ia ki workshops da kaba pyndonkam ia ki spoken tutorials. |
11:00 | Ka ai certificates sha kito kiba pass ha ka online test. |
11:04 | Na ka bynta ki jingtip ba bniah, sngewbha thoh sha ka contact at spoken hyphen tutorial dot org. |
11:12 | "Spoken Tutorial" project kadei shi bynta jong ka "Talk to a Teacher" project. |
11:17 | La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Sorkar India. |
11:24 | Kham bun ki jingtip halor kane ka mission kidon ha ka spoken hyphen tutorial dot org slash NMEICT hyphen Intro. |
11:36 | Kyrmen phi sngewtynad ia kane ka jinghikai halor ka Perl |
11:38 | Ma nga U Pdiangburom na Shillong, nga pynkut ia kane. |
11:40 | Khublei shibun. |