5 Secrets of Blogger (Service) You Don't Know


Recent Posts

Symphony Mobile Prices in Bangladesh

The most people of Bangladesh are using Symphony Mobile (Smartphone). This brand is very popular due to lower cost with demanded features.

Symphony Mobile Prices in Bangladesh
The Android mobile prices of Symphony in Bangladesh are as below:

  • Symphony i10+ → Price in Bangladesh → 7,590 BDT
  • Symphony G20 → Price in Bangladesh →  2,900 BDT
  • Symphony E30 → Price in Bangladesh → 2,690 BDT
  • Symphony P8 Pro → Price in Bangladesh →  9,490 BDT
  • Symphony E82 → Price in Bangladesh →  3,190 BDT
  • Symphony Roar V20 → Price in Bangladesh →  3,390 BDT
  • Symphony V120 → Price in Bangladesh →  5,990 BDT
  • Symphony Z9 → Price in Bangladesh →  14,990 BDT
  • Symphony P9 → Price in Bangladesh →  12,990 BDT
  • Symphony V42 → Price in Bangladesh →  3,890 BDT
  • Symphony i2 → Price in Bangladesh → 1 6,490 BDT
  • Symphony V47 → Price in Bangladesh →  4,950 BDT
  • Symphony P7 Pro → Price in Bangladesh →  9,900 BDT
  • Symphony E62 → Price in Bangladesh →  2,890 BDT
  • Symphony V65 → Price in Bangladesh →  4,890 BDT
  • Symphony V46 (C) → Price in Bangladesh →  4,290 BDT
  • Symphony i25 → Price in Bangladesh →  6,790 BDT
  • Symphony ZVIII → Price in Bangladesh →  13,990 BDT
  • Symphony V110 → Price in Bangladesh →  5,490 BDT
  • Symphony V34 → Price in Bangladesh →  3.850 BDT
  • Symphony Roar E80 → Price in Bangladesh →  3,090 BDT
  • Symphony R100 → Price in Bangladesh →  9,990 BDT
  • Symphony R20 → Price in Bangladesh →  6,750 BDT
  • Symphony i50 → Price in Bangladesh →  7,590 BDT
  • Symphony P7 → Price in Bangladesh →  8,990 BDT
  • Symphony i20 → Price in Bangladesh →  5,990 BDT
  • Symphony V32 → Price in Bangladesh →  3,690 BDT
  • Symphony V75 → Price in Bangladesh →  4,990 BDT
  • Symphony Xplorer ZVII → Price in Bangladesh →10,490 BDT
  • Symphony H400 → Price in Bangladesh →  8,490 BDT
  • Symphony i10 → Price in Bangladesh →  6,990 BDT
  • Symphony V100 → Price in Bangladesh →  5,490 BDT
  • Symphony Roar E79 → Price in Bangladesh →  3,190 BDT
  • Symphony H300 → Price in Bangladesh →  7,690 BDT
  • Symphony E15 → Price in Bangladesh →  2,695 BDT
  • Symphony V85 → Price in Bangladesh →  5,490 BDT
  • Symphony H58 → Price in Bangladesh →  7,640 BDT
  • Symphony V49 → Price in Bangladesh →  5,290 BDT
  • Symphony P6 Pro → Price in Bangladesh →  8,990 BDT
  • Symphony H175 → Price in Bangladesh →  10,490 BDT
  • Symphony E7 → Price in Bangladesh →  2,490 BDT
  • Symphony E78 → Price in Bangladesh →  3,590 BDT
  • Symphony V28 → Price in Bangladesh →  4,090 BDT
  • Symphony H120 → Price in Bangladesh →  5,990 BDT
  • Symphony H250 → Price in Bangladesh →  9,190 BDT

N.B. Prices may be differ by company. 

Samsung Mobile Prices in Bangladesh [UPDATE]

Have got this article helpful or not working? Put your comment below.
Read More »

Samsung Mobile Prices in Bangladesh [UPDATE]

Samsung is the worldwide popular mobile brand. This brand is also popular in Bangladesh. Almost all models are available in here.
Samsung Mobile Prices in Bangladesh [UPDATE]
Source: Wikimedia

Samsung Mobile Prices in Bangladesh are given below:
  • Samsung Galaxy Note8 → Price 94,900 BDT.
  • Samsung Galaxy J7 Pro → Price 29,900 BDT.
  • Samsung Galaxy J7 NXT → Price 17,900 BDT.
  • Samsung Galaxy J7 Max → Price 25,900 BDT.
  • Samsung Galaxy J2 Pro → Price 12,990 BDT.
  • Samsung Galaxy S8+ → Price 83,900 BDT.
  • Samsung Galaxy S8 → Price 77,900 BDT.
  • Samsung Galaxy A7 (2017) → Price 41,900 BDT.
  • Samsung Galaxy On7 Pro → Price 15,990 BDT.
  • Samsung Galaxy C9 Pro → Price 41,900 BDT.
  • Samsung Galaxy J2 Prime → Price 11,490 BDT.
  • Samsung Galaxy J1 Nxt Prime → Price 6,990 BDT.
  • Samsung Galaxy J1 (2016) → Price 9,490 BDT.
  • Samsung Galaxy J7 Prime → Price 22,900 BDT.
  • Samsung Galaxy J Max → Price 14,990 BDT.
  • Samsung Galaxy J2 (2016) → Price 13,490 BDT.
  • Samsung Galaxy J7 (2016) → Price 18,900 BDT.
  • Samsung Galaxy J5 (2016) → Price 18,900 BDT.
  • Samsung Galaxy J3 (2016) → Price 13,990 BDT
  • Samsung Galaxy A7 (2016) → Price 32,900 BDT.
  • Samsung Galaxy A5 2016 → Price 26,900 BDT.
  • Samsung Galaxy S7 Edge → Price 64,900 BDT.
  • Samsung Galaxy J1 Nxt → Price 6,990 BDT.
  • Samsung Galaxy J1 Ace → Price 8,490 BDT.
  • Samsung Galaxy J2 → Price 10,490 BDT.
  • Samsung Galaxy Note 5 → Price 69,900 BDT.
  • Samsung Galaxy A8 → Price 44,900 BDT.
  • Samsung Galaxy Ace Nxt 2 → Price 6,990 BDT.
  • Samsung Galaxy J7 → Price 14,990 BDT.
  • Samsung Galaxy J5 → Price 13,990 BDT.
  • Samsung Galaxy S6 edge → Price 64,900 BDT.
  • Samsung Galaxy S6 → Price 44,900 BDT.
  • Samsung Galaxy A7 → Price 29,900 BDT.
  • Samsung Galaxy E7 → Price 26,900 BDT.
  • Samsung Galaxy E5 → Price 21,900 BDT.
  • Samsung Galaxy J1 → Price 8,990 BDT.
  • Samsung Z1 → Price 5,990 BDT.
  • Samsung Galaxy A5 → Price 24,900 BDT.
  • Samsung Galaxy A3 → Price 21,900 BDT.
  • Samsung Galaxy Core Prime → Price 10,990 BDT.
  • Samsung Galaxy S Duos 3 → Price 9,900 BDT.
  • Samsung Galaxy Grand Prime → Price 14,900 BDT.
  • Samsung Galaxy Note 4 → Price 49,900 BDT.
  • Samsung Galaxy Ace NXT → Price 6,990 BDT.
  • Samsung Galaxy Alpha → Price 65,000 BDT.
  • Samsung Galaxy Core 2 → Price 7,990 BDT.
  • Samsung Galaxy S5 → Price 60,000 BDT.
  • Samsung Galaxy S3 Neo → Price 32,000 BDT.
All the smartphones are available in Bangladesh. If you need any help, ask by putting comment.

N.B. Price may be differ by company. 
Read More »

Convert Blogger Template to HTML EASIEST Way

Without any converter and hiring expert, you can easily convert any Blogger template to HTML with same look.

In another article, we have see how can we convert any HTML template into Blogger.
Convert Blogger Template to HTML EASIEST Way

You will get many methods but here is the most effective method with 9 STEPS to convert Blogger template into HTML
  1. First backup your Blogger template file.  
  2. Install the Blogger theme (which you want to convert into HTML ) in Blogger with any blog.
  3. After installing browse the homepage of this blog.
  4. Click right button from mouse and click on 'View Page Source' (Firefox Browser). You will see new tab with source code.
  5. Press Ctrl + A to select all source codes and Ctrl + C to copy.
  6. Open any Text editor. Create a New File with Ctrl + N.
  7. Paste the copied source code with Ctrl + V.
  8. Save as HTML File.
  9. You have almost done. But you have to customize some code. Because Blogger Theme contains xHTML. Check the W3C Validation.
To check the W3C Validation, follow the steps:
  • Go to W3C Validator.
  • Choose 'Validate by Direct Input from Tab.
  • Paste the source code from text editor to this validation input form.
  • Click on 'More Options'
  • Choose 'HTML 4 or HTML 5' from Validate Full Document.
  • Then Check.
You will see many errors. To remove the all errors, you have to edit your source code.

Edit source code step by step:
  1. Remove the all code before <head> tag and replace with the following code.
    <!DOCTYPE html>
    <html>
  2. Replace the <head ....> tag of source code with only <head> tag. 
  3. After <head> tag you will see <link href='https://www.blogger.com/static/v1/widgets/3730162741-widget_css_bundle.css' rel='stylesheet' type='text/css'/> . Remove this.
  4. Search for id='page-skin-1' and customize the <style> tag as you do for HTML file. Put the all CSS code within <style type="text/css">
    </style>
  5. Remove <!-- from CSS of Source code.
  6. Search for --></style> at the end of style of source code and remove it.
  7. You will see unnecessary JavaScript code before </body> tag. Remove those code.
  8. You have done 90%. If you want to remove more unnecessary HTML/CSS/JavaScript code, then you can do it. But be careful.
Have got this article helpful or not working? Put your comment below.
Read More »

5 Secrets of Blogger (Service) You Don't Know

Blogger is a popular free hosted blogging platform offered by Google. It has maximum blogging features that others blogging platform provide. Without post editing, drafting, theme customizing, custom theme installing, setting up custom domain Blogger provides many helpful features to blog properly.

The popularity of Blogger has been increased for its free and secured hosting, though Blogger has few disadvantages beside a lot of advantages. Yet, professional Bloggers recommend to start blogging on this platform.

We are who use Blogger as blogging platform, we have tried many features of Blogger already. But we didn't try some excellent features for many reasons. Somehow we have neglected those features or didn't try to avoid unknown problem.

Some of this secrets features of Blogger will be discussed here.
5 Secrets of Blogger (Service) You Don't Know

1. Post Template: Have you ever thought, if it would be possible to custom or pre-format each new post by including some text, design with code, when we will create new post by Editor? Yes, it is possible by using 'Post Template' feature.

Post Template allows to put HTML/CSS code or plain text. If you save custom pre-format, you will see the result on post editor when you will create new post.

Example: If you put 'Please comment bellow' on Post Template and Save Setting, when you will create new post, you will see same text on post editor by default.


To enable post template,
  • Go to Blogger → Setting → Posts, Comments and Sharing
  • Click on 'Add' option and you will get a box to put code or text.
  • Put your code or text on the box and 'Save Settings'.
Post Template in Blogger

Suggestion: You can put custom Author Box, Subscription Mail Box, Google AdSense Code (Advertisement at the bottom of post) by following this method.

2. Comment Message: Keep comment system on blogging post is strongly recommend by Google. But spamming is always negative impact on SEO. So you can alert to user by putting some text at the top of comment box in Blogger.
To do that, you don't need to edit code on Editor. It is so easy.
  • Go to Blogger → Setting → Posts, Comments and Sharing and Scroll down.
  • Find 'Comment Form Message'. 
  • Click on Add.
  • Put your text here.
  • Save Setting.

comment from message in blogger3. Posting by Email: Yes. You are seeing the true. It is possible to post through email.
  • The subject of email will be published as Title of Post.
  • The body of email will be published as post. If you put #end on body of email, then the part before #end will be published as body of post.
  • Attached image of email will be published as image of post.
But in which email, you will send this mail? You need to create an secrete email account in Blogger.
posting using email in blogger

To create email in Blogger -
  • Go to Blogger → Setting →Email.
  • Choose Posting using email option and put secret word in secretWords option. 
  • Then your email will be: username.[secretword]@blogger.com and send email on this mail manually. 
  • If you share this email others, they can publish post by sending mail. You can also set up as 'Disable', 'Draft' , 'Publish'.
4. Auto Publishing Post in Schedule: Suppose you have created a news post as draft. Because you don't want to publish now, you want to publish this post in fixed date automatically.  You can do it by fixing date and time.

    publish post in schedule automatic in blogger
  • Go to Blogger → Posts → Click on the title of your draft post to publish in schedule.
  • On right go on Post settings → Click on Schedule option.
  • By default, it has Automatic. You have to select date and time and choose your date and time to publish in future. 
  • Save.

5. Title Links and Enclosure Links: After publishing post you can link your title of published post with specific any valid URL. It is called title links in Blogger.
Similarly, you want to post playable MP3, mp4 or png, jpeg image etc content in feeds (RSS, Atom), you can do it easily with enclosure links option.
To get those access, you need to enable title links and enclosure links. First check it is available or not in your blog.
  • Go to Blogger → Posts → Click on the title of your selected post.
  • On right go on Post settings → Click on Links. 
title link and enclosure links in blogger

If you don't see 'Title Links' and 'Enclosure Links' then enable manually as below:
  • Go to Blogger → Settings → Other and Choose 'Enable Title Links and Enclosure Links' option from Site Feed.
  • Click Yes and Save Settings.

How to put title link:

  1. Go to Blogger → Posts → Click on the title of your selected post.
  2. On right go on Post settings → Click on Links
  3. Put any URL of you want to linked with your post title. 
  4. Publish/Update Post.

How to put enclosure Link: 

  1. Go to Blogger → Posts → Click on the title of your selected post.
  2. On right go on Post settings → Click on Links. 
  3. Put the URL of content (Video/Image etc media content) in Add link option.
  4. If the extension of media content available in URL (Exm: http://www.blogspot.com/my-song.mp3), it will automatically show in 'Add mime type' (as audio/mp3). If doesn't show then you have to put as image/png, image/jpg, video/mp4 etc.
Most Blogger user don't know this 5 Secrets. You should try this. Blogger is awesome.

Have got this article helpful or not working? Put your comment below.
Read More »

Disable AdBlock - Anti AdBlock JavaScript Code - Increase Revenues

Disable all AdBlock from your website when visitors visit by enabling AdBlocking Add-ons or browser extension. Just put the given anti-AdBlock JavaScript Code.

Many AdBlocking add-ons or extension from different browser decrease websites revenue. To prevent reducing revenues from Ads showing (Google AdSense, Media.net etc.), you should take steps against it.

Recently China’s State Administration for Industry and Commerce banned AdBlock.

Where maximum Websites and Blogs serve on-line to earn some money to live from Ad showing, AdBlocking is obviously discourage them to continue.

Whatever, it has excellent solution to stop or disable adblocking from your website or blog.
Disable AdBlock - Anti AdBlock JavaScript Code - Increase Revenues

2 Steps to stop or disable AdBlocking from your website or blog:
  1. Put the following JavaScript code before </body> tag on your website or blog.
    <script type="text/javascript"  charset="utf-8">
    // Place this code snippet near the footer of your page before the close of the /body tag
                                
    eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}(';q P=\'\',28=\'29\';1R(q i=0;i<12;i++)P+=28.11(D.K(D.O()*28.H));q 2l=8,2L=4w,35=4x,2T=19,37=F(t){q o=!1,i=F(){z(k.1j){k.2B(\'2N\',e);G.2B(\'26\',e)}S{k.2C(\'2E\',e);G.2C(\'2b\',e)}},e=F(){z(!o&&(k.1j||4y.2A===\'26\'||k.2U===\'2W\')){o=!0;i();t()}};z(k.2U===\'2W\'){t()}S z(k.1j){k.1j(\'2N\',e);G.1j(\'26\',e)}S{k.2F(\'2E\',e);G.2F(\'2b\',e);q n=!1;2Y{n=G.4z==4v&&k.1Y}2j(r){};z(n&&n.36){(F a(){z(o)J;2Y{n.36(\'14\')}2j(e){J 4u(a,50)};o=!0;i();t()})()}}};G[\'\'+P+\'\']=(F(){q t={t$:\'29+/=\',4q:F(e){q d=\'\',l,r,i,s,c,a,n,o=0;e=t.n$(e);1g(o<e.H){l=e.17(o++);r=e.17(o++);i=e.17(o++);s=l>>2;c=(l&3)<<4|r>>4;a=(r&15)<<2|i>>6;n=i&63;z(2M(r)){a=n=64}S z(2M(i)){n=64};d=d+V.t$.11(s)+V.t$.11(c)+V.t$.11(a)+V.t$.11(n)};J d},13:F(e){q n=\'\',l,c,d,s,r,i,a,o=0;e=e.1w(/[^A-4r-4s-9\\+\\/\\=]/g,\'\');1g(o<e.H){s=V.t$.1H(e.11(o++));r=V.t$.1H(e.11(o++));i=V.t$.1H(e.11(o++));a=V.t$.1H(e.11(o++));l=s<<2|r>>4;c=(r&15)<<4|i>>2;d=(i&3)<<6|a;n=n+R.U(l);z(i!=64){n=n+R.U(c)};z(a!=64){n=n+R.U(d)}};n=t.e$(n);J n},n$:F(t){t=t.1w(/;/g,\';\');q n=\'\';1R(q o=0;o<t.H;o++){q e=t.17(o);z(e<1t){n+=R.U(e)}S z(e>4t&&e<4A){n+=R.U(e>>6|4B);n+=R.U(e&63|1t)}S{n+=R.U(e>>12|2D);n+=R.U(e>>6&63|1t);n+=R.U(e&63|1t)}};J n},e$:F(t){q o=\'\',e=0,n=4I=1A=0;1g(e<t.H){n=t.17(e);z(n<1t){o+=R.U(n);e++}S z(n>4J&&n<2D){1A=t.17(e+1);o+=R.U((n&31)<<6|1A&63);e+=2}S{1A=t.17(e+1);2I=t.17(e+2);o+=R.U((n&15)<<12|(1A&63)<<6|2I&63);e+=3}};J o}};q a=[\'4K==\',\'4H\',\'4G=\',\'4C\',\'4D\',\'4E=\',\'4F=\',\'4p=\',\'4o\',\'48\',\'49=\',\'4a=\',\'4b\',\'47\',\'46=\',\'42\',\'43=\',\'44=\',\'45=\',\'4c=\',\'4d=\',\'4k=\',\'4l==\',\'4m==\',\'4n==\',\'4j==\',\'4i=\',\'4e\',\'4f\',\'4g\',\'4h\',\'4L\',\'4M\',\'5h==\',\'5i=\',\'5j=\',\'41=\',\'5g==\',\'5f=\',\'5b\',\'5c=\',\'5d=\',\'5e==\',\'5l=\',\'5m==\',\'5t==\',\'5u=\',\'5v=\',\'5s\',\'5r==\',\'5n==\',\'5o\',\'5p==\',\'5q=\'],y=D.K(D.O()*a.H),Y=t.13(a[y]),b=Y,C=1,f=\'#5a\',r=\'#59\',g=\'#4T\',w=\'#4U\',Q=\'\',W=\'4V!\',v=\'4W 4S 4R 4N\\\'4O 4P 4Q 2e 2h. 4X\\\'s 4Y.  56 57\\\'t?\',p=\'58 55 54-4Z, 51 52\\\'t 53 5w V 3C 3i.\',s=\'I 3k, I 3l 3t 3m 2e 2h.  3v 3w 3s!\',o=0,u=0,n=\'3r.3q\',l=0,M=e()+\'.2i\';F h(t){z(t)t=t.1L(t.H-15);q n=k.2k(\'3u\');1R(q o=n.H;o--;){q e=R(n[o].1S);z(e)e=e.1L(e.H-15);z(e===t)J!0};J!1};F m(t){z(t)t=t.1L(t.H-15);q e=k.3o;x=0;1g(x<e.H){1l=e[x].1D;z(1l)1l=1l.1L(1l.H-15);z(1l===t)J!0;x++};J!1};F e(t){q o=\'\',e=\'29\';t=t||30;1R(q n=0;n<t;n++)o+=e.11(D.K(D.O()*e.H));J o};F i(o){q i=[\'3x\',\'3e==\',\'3d\',\'3f\',\'2p\',\'3j==\',\'3g=\',\'3h==\',\'3p=\',\'3Z==\',\'3R==\',\'3P==\',\'3N\',\'3O\',\'3S\',\'2p\'],r=[\'2x=\',\'3y==\',\'3T==\',\'3X==\',\'3W=\',\'3U\',\'3V=\',\'3M=\',\'2x=\',\'3D\',\'3B==\',\'3z\',\'3A==\',\'3E==\',\'3K==\',\'3J=\'];x=0;1M=[];1g(x<o){c=i[D.K(D.O()*i.H)];d=r[D.K(D.O()*r.H)];c=t.13(c);d=t.13(d);q a=D.K(D.O()*2)+1;z(a==1){n=\'//\'+c+\'/\'+d}S{n=\'//\'+c+\'/\'+e(D.K(D.O()*20)+4)+\'.2i\'};1M[x]=2c 2a();1M[x].23=F(){q t=1;1g(t<7){t++}};1M[x].1S=n;x++}};F A(t){};J{2y:F(t,r){z(3I k.N==\'3H\'){J};q o=\'0.1\',r=b,e=k.1e(\'1o\');e.16=r;e.j.1m=\'1I\';e.j.14=\'-1n\';e.j.10=\'-1n\';e.j.1d=\'24\';e.j.X=\'3G\';q d=k.N.32,a=D.K(d.H/2);z(a>15){q n=k.1e(\'27\');n.j.1m=\'1I\';n.j.1d=\'1C\';n.j.X=\'1C\';n.j.10=\'-1n\';n.j.14=\'-1n\';k.N.3F(n,k.N.32[a]);n.1c(e);q i=k.1e(\'1o\');i.16=\'3c\';i.j.1m=\'1I\';i.j.14=\'-1n\';i.j.10=\'-1n\';k.N.1c(i)}S{e.16=\'3c\';k.N.1c(e)};l=3Y(F(){z(e){t((e.1U==0),o);t((e.1X==0),o);t((e.1P==\'2V\'),o);t((e.1N==\'2o\'),o);t((e.1F==0),o)}S{t(!0,o)}},21)},1Q:F(e,m){z((e)&&(o==0)){o=1;G[\'\'+P+\'\'].1s();G[\'\'+P+\'\'].1Q=F(){J}}S{q p=t.13(\'3Q\'),c=k.3n(p);z((c)&&(o==0)){z((2L%3)==0){q d=\'3L=\';d=t.13(d);z(h(d)){z(c.1K.1w(/\\s/g,\'\').H==0){o=1;G[\'\'+P+\'\'].1s()}}}};q f=!1;z(o==0){z((35%3)==0){z(!G[\'\'+P+\'\'].2X){q l=[\'5k==\',\'5D==\',\'77=\',\'78=\',\'76=\'],s=l.H,r=l[D.K(D.O()*s)],n=r;1g(r==n){n=l[D.K(D.O()*s)]};r=t.13(r);n=t.13(n);i(D.K(D.O()*2)+1);q a=2c 2a(),u=2c 2a();a.23=F(){i(D.K(D.O()*2)+1);u.1S=n;i(D.K(D.O()*2)+1)};u.23=F(){o=1;i(D.K(D.O()*3)+1);G[\'\'+P+\'\'].1s()};a.1S=r;z((2T%3)==0){a.2b=F(){z((a.X<8)&&(a.X>0)){G[\'\'+P+\'\'].1s()}}};i(D.K(D.O()*3)+1);G[\'\'+P+\'\'].2X=!0};G[\'\'+P+\'\'].1Q=F(){J}}}}},1s:F(){z(u==1){q C=3a.75(\'38\');z(C>0){J!0}S{3a.73(\'38\',(D.O()+1)*21)}};q c=\'74==\';c=t.13(c);z(!m(c)){q h=k.1e(\'79\');h.1W(\'7a\',\'7f\');h.1W(\'2A\',\'1i/7e\');h.1W(\'1D\',c);k.2k(\'7d\')[0].1c(h)};7b(l);k.N.1K=\'\';k.N.j.1b+=\'T:1C !1a\';k.N.j.1b+=\'1y:1C !1a\';q Q=k.1Y.1X||G.2f||k.N.1X,y=G.7h||k.N.1U||k.1Y.1U,a=k.1e(\'1o\'),b=e();a.16=b;a.j.1m=\'2s\';a.j.14=\'0\';a.j.10=\'0\';a.j.X=Q+\'1E\';a.j.1d=y+\'1E\';a.j.2w=f;a.j.1Z=\'72\';k.N.1c(a);q d=\'<a 1D="71://6R.6S"><2z 16="2v" X="2t" 1d="40"><2q 16="2u" X="2t" 1d="40" 5x:1D="6Q:2q/6P;6N,6O+6T+6U+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+B+6Z+70+6Y/6X/6V/6W/7g/7H+/7E/7B+7D/7C+7F/7G/7z/7w/7m/7n/7l+7k/7i+7j+7x+7p+7v+7s/7q+7r/7t+7u/7o+7A+7y+7c+6L/5W+5X/5V/5U/5R+5S+5T/5Y+5Z+69+6a+E+68/67/61/62/66/5Q/+5P/6M++5E/5F/5C+5B/5y+5z+5A==">;</2z></a>\';d=d.1w(\'2v\',e());d=d.1w(\'2u\',e());q i=k.1e(\'1o\');i.1K=d;i.j.1m=\'1I\';i.j.1B=\'1O\';i.j.14=\'1O\';i.j.X=\'5G\';i.j.1d=\'5H\';i.j.1Z=\'2m\';i.j.1F=\'.6\';i.j.2S=\'2R\';i.1j(\'5N\',F(){n=n.5O(\'\').5M().5L(\'\');G.2Z.1D=\'//\'+n});k.1J(b).1c(i);q o=k.1e(\'1o\'),Z=e();o.16=Z;o.j.1m=\'2s\';o.j.10=y/7+\'1E\';o.j.5I=Q-5J+\'1E\';o.j.5K=y/3.5+\'1E\';o.j.2w=\'#6b\';o.j.1Z=\'2m\';o.j.1b+=\'L-1x: "6c 6A", 1r, 1q, 1p-1u !1a\';o.j.1b+=\'6B-1d: 6z !1a\';o.j.1b+=\'L-1k: 6y !1a\';o.j.1b+=\'1i-1z: 1v !1a\';o.j.1b+=\'1y: 6v !1a\';o.j.1P+=\'2J\';o.j.34=\'1O\';o.j.6w=\'1O\';o.j.6x=\'2Q\';k.N.1c(o);o.j.6C=\'1C 6D 6J -6K 6I(0,0,0,0.3)\';o.j.1N=\'3b\';q Y=30,A=22,x=18,M=18;z((G.2f<2g)||(6H.X<2g)){o.j.33=\'50%\';o.j.1b+=\'L-1k: 6E !1a\';o.j.34=\'6F;\';i.j.33=\'65%\';q Y=22,A=18,x=12,M=12};o.1K=\'<39 j="1h:#6G;L-1k:\'+Y+\'1G;1h:\'+r+\';L-1x:1r, 1q, 1p-1u;L-1T:6u;T-10:1f;T-1B:1f;1i-1z:1v;">\'+W+\'</39><2H j="L-1k:\'+A+\'1G;L-1T:6t;L-1x:1r, 1q, 1p-1u;1h:\'+r+\';T-10:1f;T-1B:1f;1i-1z:1v;">\'+v+\'</2H><6i j=" 1P: 2J;T-10: 0.2G;T-1B: 0.2G;T-14: 2d;T-2K: 2d; 2P:6j 6h #6g; X: 25%;1i-1z:1v;"><p j="L-1x:1r, 1q, 1p-1u;L-1T:2O;L-1k:\'+x+\'1G;1h:\'+r+\';1i-1z:1v;">\'+p+\'</p><p j="T-10:6d;"><27 6e="V.j.1F=.9;" 6f="V.j.1F=1;"  16="\'+e()+\'" j="2S:2R;L-1k:\'+M+\'1G;L-1x:1r, 1q, 1p-1u; L-1T:2O;2P-6k:2Q;1y:1f;6l-1h:\'+g+\';1h:\'+w+\';1y-14:24;1y-2K:24;X:60%;T:2d;T-10:1f;T-1B:1f;" 6r="G.2Z.6s();">\'+s+\'</27></p>\'}}})();G.2n=F(t,e){q r=6q.6p,i=G.6m,a=r(),n,o=F(){r()-a<e?n||i(o):t()};i(o);J{6n:F(){n=1}}};q 2r;z(k.N){k.N.j.1N=\'3b\'};37(F(){z(k.1J(\'1V\')){k.1J(\'1V\').j.1N=\'2V\';k.1J(\'1V\').j.1P=\'2o\'};2r=G.2n(F(){G[\'\'+P+\'\'].2y(G[\'\'+P+\'\'].1Q,G[\'\'+P+\'\'].6o)},2l*21)});',62,478,'|||||||||||||||||||style|document||||||var|||||||||if||vr6||Math||function|window|length||return|floor|font||body|random|xcJQCflAmpis||String|else|margin|fromCharCode|this||width|||top|charAt||decode|left||id|charCodeAt|||important|cssText|appendChild|height|createElement|10px|while|color|text|addEventListener|size|thisurl|position|5000px|DIV|sans|geneva|Helvetica|NhnwYPCjqO|128|serif|center|replace|family|padding|align|c2|bottom|0px|href|px|opacity|pt|indexOf|absolute|getElementById|innerHTML|substr|spimg|visibility|30px|display|bPqodbIKMt|for|src|weight|clientHeight|babasbmsgx|setAttribute|clientWidth|documentElement|zIndex||1000||onerror|60px||load|div|KkUCuxqIgh|ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|Image|onload|new|auto|ad|innerWidth|640|blocker|jpg|catch|getElementsByTagName|VABjXzYzJp|10000|cfVDoTdmsN|none|cGFydG5lcmFkcy55c20ueWFob28uY29t|image|BGWRSzJxTu|fixed|160|FILLVECTID2|FILLVECTID1|backgroundColor|ZmF2aWNvbi5pY28|ekgBSgaBPk|svg|type|removeEventListener|detachEvent|224|onreadystatechange|attachEvent|5em|h1|c3|block|right|WSpSwDLzQd|isNaN|DOMContentLoaded|300|border|15px|pointer|cursor|neMuFFBFgq|readyState|hidden|complete|ranAlready|try|location|||childNodes|zoom|marginLeft|nsJjjBITZC|doScroll|rMwHazIJjv|babn|h3|sessionStorage|visible|banner_ad|anVpY3lhZHMuY29t|YWQubWFpbC5ydQ|YWQuZm94bmV0d29ya3MuY29t|YWdvZGEubmV0L2Jhbm5lcnM|YWR2ZXJ0aXNpbmcuYW9sLmNvbQ|awesome|YS5saXZlc3BvcnRtZWRpYS5ldQ|understand|have|my|querySelector|styleSheets|Y2FzLmNsaWNrYWJpbGl0eS5jb20|kcolbdakcolb|moc|in|disabled|script|Let|me|YWRuLmViYXkuY29t|YmFubmVyLmpwZw|ZmF2aWNvbjEuaWNv|YmFubmVyX2FkLmdpZg|c3F1YXJlLWFkLnBuZw|site|YWQtbGFyZ2UucG5n|bGFyZ2VfYmFubmVyLmdpZg|insertBefore|468px|undefined|typeof|YWR2ZXJ0aXNlbWVudC0zNDMyMy5qcGc|d2lkZV9za3lzY3JhcGVyLmpwZw|Ly9wYWdlYWQyLmdvb2dsZXN5bmRpY2F0aW9uLmNvbS9wYWdlYWQvanMvYWRzYnlnb29nbGUuanM|Q0ROLTMzNC0xMDktMTM3eC1hZC1iYW5uZXI|YWRzYXR0LmFiY25ld3Muc3RhcndhdmUuY29t|YWRzYXR0LmVzcG4uc3RhcndhdmUuY29t|YWRzLnp5bmdhLmNvbQ|aW5zLmFkc2J5Z29vZ2xl|YWRzLnlhaG9vLmNvbQ|YXMuaW5ib3guY29t|NDY4eDYwLmpwZw|MTM2N19hZC1jbGllbnRJRDI0NjQuanBn|YWRjbGllbnQtMDAyMTQ3LWhvc3QxLWJhbm5lci1hZC5qcGc|c2t5c2NyYXBlci5qcGc|NzIweDkwLmpwZw|setInterval|cHJvbW90ZS5wYWlyLmNvbQ||QWRDb250YWluZXI|QWRBcmVh|QWRGcmFtZTE|QWRGcmFtZTI|QWRGcmFtZTM|QWQ3Mjh4OTA|QWQzMDB4MjUw|YWQtY29udGFpbmVy|YWQtY29udGFpbmVyLTE|YWQtY29udGFpbmVyLTI|QWQzMDB4MTQ1|QWRGcmFtZTQ|QWRMYXllcjE|RGl2QWQx|RGl2QWQy|RGl2QWQz|RGl2QWRB|RGl2QWQ|QWRzX2dvb2dsZV8wNA|QWRMYXllcjI|QWRzX2dvb2dsZV8wMQ|QWRzX2dvb2dsZV8wMg|QWRzX2dvb2dsZV8wMw|YWQtZm9vdGVy|YWQtbGI|encode|Za|z0|127|setTimeout|null|91|178|event|frameElement|2048|192|YWQtaGVhZGVy|YWQtaW1n|YWQtaW5uZXI|YWQtbGFiZWw|YWQtZnJhbWU|YWRCYW5uZXJXcmFw|c1|191|YWQtbGVmdA|RGl2QWRC|RGl2QWRD|you|re|using|an|like|looks|adb8ff|FFFFFF|Welcome|It|That|okay|income||we|can|keep|advertising|without|Who|doesn|But|777777|EEEEEE|YmFubmVyX2Fk|YWRCYW5uZXI|YWRiYW5uZXI|YWRBZA|YWRUZWFzZXI|Z2xpbmtzd3JhcHBlcg|QWRJbWFnZQ|QWREaXY|QWRCb3gxNjA|Ly93d3cuZ29vZ2xlLmNvbS9hZHNlbnNlL3N0YXJ0L2ltYWdlcy9mYXZpY29uLmljbw|YmFubmVyYWQ|IGFkX2JveA|YWRzZW5zZQ|Z29vZ2xlX2Fk|b3V0YnJhaW4tcGFpZA|c3BvbnNvcmVkX2xpbms|cG9wdXBhZA|YWRzbG90|YWRfY2hhbm5lbA|YWRzZXJ2ZXI|YmFubmVyaWQ|making|xlink|Uv0LfPzlsBELZ|3eUeuATRaNMs0zfml|gkJocgFtzfMzwAAAABJRU5ErkJggg|dEflqX6gzC4hd1jSgz0ujmPkygDjvNYDsU0ZggjKBqLPrQLfDUQIzxMBtSOucRwLzrdQ2DFO0NDdnsYq0yoJyEB0FHTBHefyxcyUy8jflH7sHszSfgath4hYwcD3M29I5DMzdBNO2IFcC5y6HSduof4G5dQNMWd4cDcjNNeNGmb02|uJylU|Ly93d3cuZ3N0YXRpYy5jb20vYWR4L2RvdWJsZWNsaWNrLmljbw|u3T9AbDjXwIMXfxmsarwK9wUBB5Kj8y2dCw|Kq8b7m0RpwasnR|160px|40px|minWidth|120|minHeight|join|reverse|click|split|QhZLYLN54|14XO7cR5WV1QBedt3c|x0z6tauQYvPxwT0VM1lH9Adt5Lp|F2Q|bTplhb|pyQLiBu8WDYgxEZMbeEqIiSM8r|kmLbKmsE|uI70wOsgFWUQCfZC1UI0Ettoh66D|szSdAtKtwkRRNnCIiDzNzc0RO|E5HlQS6SHvVSU0V|j9xJVBEEbWEXFVZQNX9||CGf7SAP2V6AjTOUa8IzD3ckqe2ENGulWGfx9VKIBB72JM1lAuLKB3taONCBn3PY0II5cFrLr7cCp|UIWrdVPEp7zHy7oWXiUgmR3kdujbZI73kghTaoaEKMOh8up2M8BVceotd||||BNyENiFGe5CxgZyIT6KVyGO2s5J5ce|SRWhNsmOazvKzQYcE0hV5nDkuQQKfUgm4HmqA2yuPxfMU1m4zLRTMAqLhN6BHCeEXMDo2NsY8MdCeBB6JydMlps3uGxZefy7EO1vyPvhOxL7TPWjVUVvZkNJ|MjA3XJUKy|1HX6ghkAR9E5crTgM|0t6qjIlZbzSpemi|fff|Arial|35px|onmouseover|onmouseout|CCC|solid|hr|1px|radius|background|requestAnimationFrame|clear|nipmDSFuLH|now|Date|onclick|reload|500|200|12px|marginRight|borderRadius|16pt|normal|Black|line|boxShadow|14px|18pt|45px|999|screen|rgba|24px|8px|UADVgvxHBzP9LUufqQDtV|e8xr8n5lpXyn|base64|iVBORw0KGgoAAAANSUhEUgAAAKAAAAAoCAMAAABO8gGqAAAB|png|data|blockadblock|com|1BMVEXr6|sAAADr6|v792dnbbdHTZYWHZXl7YWlpZWVnVRkYnJib8|PzNzc3myMjlurrjsLDhoaHdf3|Ly8vKysrDw8O4uLjkt7fhnJzgl5d7e3tkZGTYVlZPT08vLi7OCwu|fn5EREQ9PT3SKSnV1dXks7OsrKypqambmpqRkZFdXV1RUVHRISHQHR309PTq4eHp3NzPz8|sAAADMAAAsKysKCgokJCRycnIEBATq6uoUFBTMzMzr6urjqqoSEhIGBgaxsbHcd3dYWFg0NDTmw8PZY2M5OTkfHx|enp7TNTUoJyfm5ualpaV5eXkODg7k5OTaamoqKSnc3NzZ2dmHh4dra2tHR0fVQUFAQEDPExPNBQXo6Ohvb28ICAjp19fS0tLnzc29vb25ubm1tbWWlpaNjY3dfX1oaGhUVFRMTEwaGhoXFxfq5ubh4eHe3t7Hx8fgk5PfjY3eg4OBgYF|http|9999|setItem|Ly95dWkueWFob29hcGlzLmNvbS8zLjE4LjEvYnVpbGQvY3NzcmVzZXQvY3NzcmVzZXQtbWluLmNzcw|getItem|Ly93d3cuZG91YmxlY2xpY2tieWdvb2dsZS5jb20vZmF2aWNvbi5pY28|Ly9hZHZlcnRpc2luZy55YWhvby5jb20vZmF2aWNvbi5pY28|Ly9hZHMudHdpdHRlci5jb20vZmF2aWNvbi5pY28|link|rel|clearInterval|UimAyng9UePurpvM8WmAdsvi6gNwBMhPrPqemoXywZs8qL9JZybhqF6LZBZJNANmYsOSaBTkSqcpnCFEkntYjtREFlATEtgxdDQlffhS3ddDAzfbbHYPUDGJpGT|head|css|stylesheet|aa2thYWHXUFDUPDzUOTno0dHipqbceHjaZ2dCQkLSLy|innerHeight|RUIrwGk|qdWy60K14k|EuJ0GtLUjVftvwEYqmaR66JX9Apap6cCyKhiV|0idvgbrDeBhcK|HY9WAzpZLSSCNQrZbGO1n4V4h9uDP7RTiIIyaFQoirfxCftiht4sK8KeKqPh34D2S7TsROHRiyMrAxrtNms9H5Qaw9ObU1H4Wdv8z0J8obvOo|wd4KAnkmbaePspA|I1TpO7CnBZO|1FMzZIGQR3HWJ4F1TqWtOaADq0Z9itVZrg1S6JLi7B1MAtUCX1xNB0Y0oL9hpK4|KmSx|0nga14QJ3GOWqDmOwJgRoSme8OOhAQqiUhPMbUGksCj5Lta4CbeFhX9NN0Tpny|uWD20LsNIDdQut4LXA|BKpxaqlAOvCqBjzTFAp2NFudJ5paelS5TbwtBlAvNgEdeEGI6O6JUt42NhuvzZvjXTHxwiaBXUIMnAKa5Pq9SL3gn1KAOEkgHVWBIMU14DBF2OH3KOfQpG2oSQpKYAEdK0MGcDg1xbdOWy|iqKjoRAEDlZ4soLhxSgcy6ghgOy7EeC2PI4DHb7pO7mRwTByv5hGxF|YbUMNVjqGySwrRUGsLu6|VOPel7RIdeIBkdo|CXRTTQawVogbKeDEs2hs4MtJcNVTY2KgclwH2vYODFTa4FQ|h0GsOCs9UwP2xo6|Lnx0tILMKp3uvxI61iYH33Qq3M24k|QcWrURHJSLrbBNAxZTHbgSCsHXJkmBxisMvErFVcgE|ejIzabW26SkqgMDA7HByRAADoM7kjAAAAInRSTlM6ACT4xhkPtY5iNiAI9PLv6drSpqGYclpM5bengkQ8NDAnsGiGMwAABetJREFUWMPN2GdTE1EYhmFQ7L339rwngV2IiRJNIGAg1SQkFAHpgnQpKnZBAXvvvXf9mb5nsxuTqDN|ISwIz5vfQyDF3X|cIa9Z8IkGYa9OGXPJDm5RnMX5pim7YtTLB24btUKmKnZeWsWpgHnzIP5UucvNoDrl8GUrVyUBM4xqQ|b29vlvb2xn5|MgzNFaCVyHVIONbx1EDrtCzt6zMEGzFzFwFZJ19jpJy2qx5BcmyBM|oGKmW8DAFeDOxfOJM4DcnTYrtT7dhZltTW7OXHB1ClEWkPO0JmgEM1pebs5CcA2UCTS6QyHMaEtyc3LAlWcDjZReyLpKZS9uT02086vu0tJa|v7'.split('|'),0,{}));
    
    </script>
    For Blogger platform, go to Blogger → Layout → Add a Gadget → HTML/JavaScript → Put the above code → Save.
  2. Save your theme.
If you want to configure with more features, then try from BlockAdBlock.

The default setting will show the following result on your website or blog, if somebody who uses AdBlock.
how to stop adblock from website
If you think alternative of BlockAdBlock, then configure Script code from AntiBlock.

I hope, you will be success to stop or disable AdBlock by putting anti-AdBlock JavaScript Code and increase your revenues.

Have got this article helpful or not working? Put your comment below.
Read More »

Run Python Script Linux (Ubuntu) Command Line

You can run Python script through Linux command line.

It is a great feature of using Linux kernel base Operating System like Ubuntu, Linux Mint etc that you can easily run or compile Python file through Linux Command Line without installing any IDE for Python Language. Not only Python File, you can interpret Python statement on Terminal.

So this tutorial will let you learn -
To create Python File on Terminal:
  1. Open Terminal by Ctrl + Alt + T
  2. Open any Text Editor and create a Python file with file_name.py . If you have Sublime Text Editor then write the following command and hit Enter.
    subl file_name.py
    If you don't have any then write the following command and hit Enter.
    gedit file_name.py
    By default, Ubuntu has Gedit Text Editor.
Run Python Script Linux (Ubuntu) Command Line

When your text editor is ready then write your Python code and Save.
To run Python File on Terminal:
  1. Open Terminal by Ctrl + Alt + T, if it is opened, then no need to reopen.
  2. First check your current directory of created Python file. To check directory run the following command.
    pwd
  3. Then change the directory to your python file file_name.py. Suppose your current directory of your created file is /home/you/Desktop, then run the following command.
    cd /home/you/Desktop
  4. After changing directory from Terminal, put the following command.
    python file_name.py
Here, file_name.py is the name of your Python file. You will see the output of your python file.

To write Python Code and Run on Terminal:
  1. Open Terminal by Ctrl + Alt + T, if it is opened, then no need to re-open.
  2. Type Python and hit Enter
  3. Now write Python code and hit Enter to next statement.
Some Tips to write Python code on Terminal smoothly:
  • To copy and code on Terminal first select by mouse and Ctrl + Shift + C to copy and Ctrl + Shift + V to paste.
  • Since Indention is the most important for Python Programming Language, Put Spacebar twice when Indention is needed. Example: 
Fun with Python in Terminal:
  • >> Type 8 + 3 and hit Enter, you will see result 11
  • >> Type list = [3, 4, 2, 5] and hit Enter. Again Type list and hit Enter, you will see list = [3, 4, 2, 5]
  • >> Go on.
Have got this article helpful or not working? Put your comment below.
Read More »

Arrays and Strings in C

We can assign integer, float numbers or digits easily by just putting assignment operator between variable name and required numbers or digits.

But if we want to assign character there has little difference as below.

char ch = 'A';

We are allowed only one character within single quote to assign. If you try to assign more than one character with this method it will show garbage results with warnings.

To check this you can run the following program from your compiler.
#include <stdio.h>
int main()
{
    char ch;
    ch = 'ABCD';

    printf("%c",ch);

    return 0;
}
What is the method to assign multiple characters to variable?

There has a method to assign multiple characters to variable with Array.

Array is a fixed size derived data type that contains the element of same data type.

The declaration of array is:

data_type variable [size];

And the initialization or assigning of array is:
data_type variable [size] = {Element of array by separating with comma};

Example:

int numbers[6] = {1, 4, 2, 88, -90, 3};

This array declaration means, numbers is the name of array that contains only integer data type numbers and the maximum 6 numbers can contain as element of array.

Arrays and Strings in C

For the character type data the array will be:

char variable_name[size] = {characters are separated by comma and enclose with single quote};

N.B. Size must be integer type.

Example:

char blog[11]= {'C', 'O', 'M', 'P', 'R', 'O', 'M', 'A', 'T', 'H', '\0'};

Observations:

  • This is called array declaration and assignment.
  • blog is the name of array and the rules of naming array is similar as variable.
  • Number between [] is the length indication of number of characters to assign.
  • The above statement declares that COMPROMATH will be assigned to a variable called blog.
  • There has additional '\0' character at the last of this series of characters. It is called null character. This null character declares the end of assigning characters to array.

Now run the following program.
#include <stdio.h>
int main()
{
    /*ARRAY DECLARATION AND ASSIGNMENT*/
    char blog[11]= {'C', 'O', 'M', 'P', 'R', 'O', 'M', 'A', 'T', 'H', '\0'};

    /*PRINT THE RESULT*/
    printf("%s\n",blog);

    return 0;
}
Do you think the method of assigning multiple characters together to a variable is quite difficult and bored?

Yes. Don't be upset. There has another simple method to assign multiple characters together. If we want to assign the COMPROMATH then we can do it as below:

char ch[11]= "COMPROMATH";

But remember the number of size will be greater than number of characters to assign and put double quotation within String (sequence of characters).

Now run the following program:
#include <stdio.h>
int main()
{
    char ch[11]= "COMPROMATH";
    
    printf("%s\n",blog);

    return 0;
}
N.B. %s for string.

Question: What is String in C?

Ans: String in C is the sequence of characters. String may be a word or sentence with whitespace.
Example: Hello, Hello World etc.


Before discussing about array types we should to know how array works, how the element of array are stored in memory and what is the addressed of memory for array and its element.

Looking for more effecive Course?

C Programming For Beginners by Udemy icon
$15 (Original $145)
30-Day Money-Back Guarantee
Buy
Includes:
  • 6 hours on-demand video
  • 1 Article
  • 2 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
We know when we declare a variable in program, computer offers specific space for this variable. We can call this as the location of variable in memory and it has unique address.

The address of variable can be found from programming if we type

printf("%u", &variable_name);

Appending an ampersand (&) before the variable name define the address of variable.  If we execute the above statement it will return as 100979797. It is the address of variable. Remember, address of variable depends on system. So address of variable in one computer may be different from the address of same variable with same data type. And addresses of different variables in one system can't be same.
#include <stdio.h>
int main()
{
    int variable, variables[4] = {1, 2, 3, 4};

    printf("Address of variable is %u\n",&variable);
    printf("Address of variables is %u\n",variables);
    printf("Address of variables[0] is %u\n",&variables[0]);
    printf("Address of variables[1] is %u\n",&variables[1]);
    printf("Address of variables[2] is %u\n",&variables[2]);
    printf("Address of variables[3] is %u\n",&variables[3]);

    return 0;

}

One dimensional array

One dimensional Array in C is a list of item with one subscript.

Declaration of One Dimensional Array: The declaration of one dimensional array is:
data_type variable_name[size];
Example:int numbers[10];

Initialization of One Dimensional Array: The initialization of one dimensional array can be in two ways at compile time and run time.

Initialization at Compile Time: We can initial one dimensional array at compile time by assigning the values as below:
data_type variable_name [size] = {values with seperation};
Example: float numbers[10] = {1.05, 2.06, 33.5, 77.4, 66.2, 2.09, 3.058, 8.9, 6.48, 55.5};

You can skip the size if you declare the elements of array. As a result, we can rewrite the above statement as:
float numbers[] = {1.05, 2.06, 33.5, 77.4, 66.2, 2.09, 3.058, 8.9, 6.48, 55.5};

Initialization at Run Time: Sometime it is required to input data in array from user to implement calculation and result and it can also do it by initializing at run time.

Suppose, the declared array is int digits[10]; and it isn't initialized at compile time. We want to initial elements of array at run time then we can do it with any loop, if else condition etc. Now run and observe the following program:
#include <stdio.h>
int main()
{
    int i, digits[10];

    printf("Input the elements:\n");
    /*Hit Enter after each input*/

    for(i=0; i<=9; i++)
    {
        scanf("%d",&digits[i]);
    }
    //Print the result
    printf("The output:\n");

    for(i=0; i<=9; i++)
    {
        printf("%d\n",digits[i]);
    }
    return 0;
}

Two dimensional array

If we want to work with data of table with array then we can do it with two or multidimensional array. The basic concept of two dimensional and multidimensional array is same, we will see about two dimensional array.
Suppose, here is a list. And we want to work with the red marked table.  Look there has 4 rows and 3 columns.

So the declaration of two dimensional array will be:
int list_pro[2][4];
Here has 2 size. The first one defines the number of row and second defines the number of column.
1 2 3 4
5 6 7 8
How can do initialization of two dimensional array?

Similarly we can initial at compile time and run time.

Initialization at Compile Time: The initialization of two dimensional at compile time is as below:
int list_pro[2][4] = {
{1,2,3,4},{5,6,7,8}
};
Initialization at Run Time: The initialization of two dimensional at run time is as below:

We can do it in nested For Loop.
#include <stdio.h>
int main()
{
    int list_pro[2][4];
    int i, j;

    for(i=0; i<2; i++)
    {
        for(j=0; j<4; j++)
        {
            scanf("%d", &list_pro[i][j]);
        }
    }
    //PRINT THE RESULT

    for(i=0; i<2; i++)
    {
        for(j=0; j<4; j++)
        {
            printf("%d\t", list_pro[i][j]);
        }
        printf("\n");
    }

    return 0;
}
Row/Column COL-1 COL-2 COL-3 COL-4
ROW-1 list_pro[0][0] list_pro[0][1] list_pro[0][2] list_pro[0][3]
ROW-2 list_pro[1][0] list_pro[1][1] list_pro[1][2] list_pro[1][3]
If we separate the initialization of two dimensional at run time, then it will look as.

The outer loop increment works for rows and inner loop increment works for columns.

String operation


Have got this article helpful or not working? Put your comment below.
Read More »

Data Input and Output in C

Managing input and output in any programming language is the fundamental demand according to the purposes of programming for developing project on system or applications. Applications which we use to reduce human efforts such as calculator to calculation the multiple digits or complex sum, we insert digit and the machine returns a result according to operation. The process to insert digit or value is called input and the result is called output.

We want to write a program what will calculate addition, subtraction, multiplication, division. Before we have learned to write a program to calculate this operation with given value. Now we don’t know the value of variables by which we want to write a calculation program. What will we do now? Obviously we have to put system to take input. After taking input we will write statements of calculation with variable and finally we will print the calculation results.

Yes. There has many input functions in C to take input different data type value. With this built in functions, we can take not only digits, but also character, string.

scanf() and printf()

The mostly used input function in C is scanf() and the mostly used output function in C is printf().
Using scanf() function we can take input integer, float, double, character, string.

If we want to take input of a integer number, then we have to write a statement like below: scanf(“%d”,&var1); Assume variable var1 has been declared as integer data type before.
Data Input and Output in C
Focus on this statement:
  1. The %d is for defining that this function will take input integer number once and %d is enclosed with double quotation. The %d can be called input data type specifier. Similarly, if we want to take float data type then the input data type specifier would %f, for character %c and for string %s.
  2. The given scanf() function has two parts: First is input specifier and second is variable address to input. After enclosing input type specifier the comma to separate two parts.
  3. We assumed variable var1 is declared as integer type. Including ampersand (‘&’) before variable name defines the location of input will be saved. As we want to integer input would save in var1 variable we have defined it with this variable name. Now if we want to print the value of variable var1, we have to write another statement like below: printf(“%d”,var1);
Here, the %d is output data type specifier and var1 for defining which variable’s value we want to print.

Remember: Don’t put ampersand (‘&’) before var1 in printf() like scanf(). Now run the following program and observe yourself.
#include <stdio.h>
int main()
{
    int var1; //Variable Declaration
    scanf("%d",&var1); //Input to var1
    printf("%d",var1); //Output of Input
    return 0;
}
Hints: This program will print the input given by user. What you input, it will return the same output. Question: Is it possible to input multiple same or different data type in one scanf() function?
Ans: Yes. Follow as the given program to declare variable, input and output.
#include <stdio.h>
int main()
{
    int var1; //Integer Variable Declaration
    float var2; //Float Variable Declaration
    char var3; //Character Variable Declaration
    scanf("%d %f %c",&var1, &var2, &var3); //Input to var1, var2, var3 serially
    printf("%d %f %c",var1, var2, var3); //Output of Input
    return 0;
}
Input: 10 5.75 A
Output: 10 5.750000 A

Formatted Input and Formatted Output

Formatted Input: It refers to input data in particular format. We input 4 digit of a number to variable. But if we want to specify the number of digit (2 digit) to read data by read function like scanf(), then this required input is called formatted input.

To format input, we have to specify the number of digit we want to store in variable. If we want to take and only 3 digit of a integer variable number, then the statement will be: scanf("%3d",&number); Now run the following program in your compiler.
#include <stdio.h>
int main()
{
    int num1, num2;

    scanf("%2d %3d",&num1, &num2);

    printf("%d %d", num1, num2);

    return 0;
}
Input: 233445 767688
Output: 23 767
Formatted Output: Similarly formatted input it can possible to format of output.
  • If the number of formatted output specifier be greater than the number of digit of variable, then the formatted output will be significant.
    If number of formatted output specifier be positive, output will be right-justified. The width of right-justified will be the remaining width from total width as formatted output specifier and the width of the value of variable to print.

    Example: printf("%6d\n", 52458);

    If number of formatted output specifier be negative, output will be left-justified.
    The width of left-justified will be the remaining width from total width as formatted output specifier and the width of the value of variable to print.
    Example: printf("%-6d\n", 52458);
    #include <stdio.h>
    int main()
    {
    
        printf("%0d\n", 52458);
        printf("%0d\n", 52458);
        printf("%1d\n", 52458);
        printf("%2d\n", 52458);
        printf("%3d\n", 52458);
        printf("%4d\n", 52458);
        printf("%5d\n", 52458);
        printf("%6d\n", 52458);
    
        return 0;
    }
    
  • The following statement will print 052458

    printf("%06d\n", 52458);

    We have discussed formatted output for integer. If want to do formatted output for fractional and string, what will be?

    For fractional and strings it has different rules. %w.j where w for total width and j for width to justify.

    Now run the following program and see.
    #include <stdio.h>
    int main()
    {
        float number;
        number = 55.258;
    
        printf("%7.3f\n",number);
        printf("%7.2f\n",number);
        printf("%-7.2f\n",number);
        printf("%-7.3f\n",number);
    
        return 0;
    }
Similarly before, Positive for right-justified and negative for left-justified. You can make formatted output for string as it.
Input String and line
We have learned how to take input a character. But if you try to take a string (a collection of character)  what we have to:
First we have to declare a string.
The declaration of string is:

char variable_name[string_size];

string_size must be in integer.

Example: char ch[100];
This type variable declaration is called character array in C.

Now run and observe the following program. This program will print string what we input.
#include <stdio.h>
int main()
{
    char ch[10];

    scanf("%s",ch);
    printf("%s",ch);

    return 0;
}
Input: Hello
Output: Hello

In scanf() function we didn’t put ampersand (‘&’) before variable name. Because in character array the name of variable is also the address of variable.

We can take input one word by this method. In character array whitespace and after the part of whitespace aren’t read by scanf() function.  So if we want to input “Hello World” and print it, then the program will print only Hello.

How to read and print a sentence with whitespace by scanf() function in C?
We can do it by another specification in scanf(). If we put %[^\n] instead of %s, it will read all with whitespace till newline.

Now run the following program.
#include <stdio.h>
int main()
{
    char ch[100];
    scanf("%[^\n]",ch);
    printf("%s",ch);
    return 0;
}
Input: Hello World
Output: Hello World

By this input specifier we can define what will be input. Example: If we want to input only a to z then the specifer will be %[a-z].


More Input and Output Function

1. getchar() and putchar()


getchar() and putchar() are two built-in functions, the first one is for input a character and the last one is for print the character.

Now run the program.
#include <stdio.h>
int main()
{
    char ch;
    ch = getchar();
    putchar(ch);
}
You can take input by getchar() function and print by printf() function regularly and also vice-versa.
#include <stdio.h>
int main()
{
    char ch;
    ch = getchar();//Input by getchar function
    printf("%c",ch); //Output by printf function
    return 0;
}
2. gets() and puts():
gets() and puts() are two built-in functions, the first one is for input line of text and the last one is for print the line of text.
#include <stdio.h>
int main()
{
    char ch[100];

    gets(ch);
    puts(ch);
    return 0;
}
Though it is easy method to input a line of text, you should avoid this function. 

Have got this article helpful or not working? Put your comment below.

Looking for more effecive Course?

C Programming For Beginners by Udemy icon
$15 (Original $145)
30-Day Money-Back Guarantee
Buy
Includes:
  • 6 hours on-demand video
  • 1 Article
  • 2 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Read More »

Decision Making in C

Decision making in C tutorial for beginners.

One day Mr. Brian told his lovely son, “Dear Brite, if you hard work, you will progress in your life”. After listening this tips from his beloved father, Brite started hard working and one day he succeeded on his career.

Now observe the above segment of a story. There has a condition where progressing in life depends on and the condition is hard working. Observing on the conditional statement we can take decision to act and that was taken by Brite.

As Brite, in our daily life we make decision to buy products depending on parse, to go out depending on climate etc.

Decision Making in C

This type making decision is called “Decision making with if statement” in C.

If statement in C Programming

The general formation of if statement in C Programming is:
if(condition test)
{
 /* Executable statement if and only if condition be true */
}
/*Executable Next Statement without depending condition test*/
We can apply the first conditional statement on this.
if(Will you do hard word?)
{
 You will progress in your life.
}
I don’t know what is the next occurrence of your life. 

If you try to run the above on your compiler, you will see many errors in your build results.

Why? Because, the condition test within parentheses is in wrong format.

The condition test must be with relational operators and using logical, arithmetic operators is optional.
At least one variable or constant must be compared with another variable or constant.

The another reasons is we didn’t write any statement according to the rules of declaration statement in C there.

Now we want to write a program where the value of variable number is given. We want to check the number is greater than 5. If number is greater than 5 then we want to print a string “Number is greater than 5.”

Then the program will be:
#include <stdio.h>
int main()
{
    int number;

    number = 10;
    //If statement Start
    if(number > 5) //Condition Test
    {
        printf("%d is greater than 5\n",number); //If condition be true then execute this
    }
    //End of if statement
    printf("Test is End.\n");
    return 0;
}
Output:

10 is greater than 5.
Test is End.

Remember:
  • Variable must be declared and initialized (assigned with constant) before putting within parentheses to compare.
    Example:
    int number; //This is variable declaration
    number = 10; //Initialization
  • Don’t put semicolon after if().
Exercise: Write a program to determine the input number is positive. If positive then print Number is positive.

Nested If Statement in C

If we want to test more after the first test condition be true by if statement, we can do it by nested if statement in C.

We often use nested if statement in our logical life. We declare nested if statement like: If you turn left  you will see a river and if you see any boat across on river then you can ride on it.

Look, riding on boat depends on two conditions: turning left to see a river and remaining boat to ride. If both conditions be true then you will be permitted to ride. These type statement is called nested if statement.

Nested if statement actually refers to AND returns of Nth if statement. 

The general form of nested test is:
if(1st condition test)
{
 if(2nd condition test) /*Executable Test if 1st condition test be true*/
    {
        /*Executable Statement if 2nd condition test be true*/
    }
    /*Executable Statement that doesn't depend on 2nd condition test but 1st condition*/
}
/*Executable Statement that doesn't depend any condition test*/
Example:
#include <stdio.h>
int main()
{
    int number;

    number = 6;

    /*Outer if statement start*/
    if(number >=0)
    {
        printf("%d is positive number.\n",number);
        /*Inner if statement of nested if statement start*/
        if(number>5)
        {
            printf("%d is greater than 5\n",number);
        }
        /*Inner if statement of nested if statement end*/
    }
    /*Outer if statement end*/
    printf("End of if statement.\n");
    return 0;
}

If...else statement in C Programming

Before we have seen if statement returns only one conditional statement. If conditional test be true then its relative statement be executed, otherwise skipped. But if else statement returns two conditional statement: one for true and another for false, but not both.

If Mr. Brian told Brite, “If you hard work, you will progress in your life, otherwise you will be unhappy.”, then the statement can be called if else statement.

The general form of if else statement:
  if(/*Condition Test*/)
    {
        /*Statement will be executed if test return true*/
    }
    else
    {
        /*Statement will be executed if test return false*/
    }

    /*Statement that doesn't depend on condition test*/
Program: Write a program to determine the scanned integer number is positive or negative with if else statement.
#include <stdio.h>
int main()
{
    int number;

    scanf("%d",&number);

    if(number>=0)
    {
        printf("%d is a positive number.\n",number);
    }
    else
    {
        printf("%d is a negative number.\n",number);
    }

    return 0;
}
Question: Can it possible to make nested if statement in if else statement in C? If yes, how?

Ans: Yes, it is possible to make nested if statement in if else statement in C. It is similar as nested if statement. You are allowed to make nested within if block, not within else block.

Example: We can check the above program with some modification.
#include <stdio.h>
int main()
{
    int number;

    scanf("%d",&number);

    if(number>=0)
    {
        if(number==0)
        {
            printf("%d is a ZERO.\n",number);
        }
        else
        {
            printf("%d is a positive number.\n",number);
        }
    }
    else
    {
        printf("%d is a negative number.\n",number);
    }

    return 0;
}

If else ladder statement in C Programming

If we want to return more than two statement by conditional statement, we have to use if else ladder statement in C Programming language. Similarly if else it returns two executed statement but it has additional block between if and else block, if else ladder. if else ladder is used to check conditional test.

The general form of if else ladder statement is:
if(/*1st Condition Test*/)
   {
       /*Executable statement if 1st condition test be true*/
   }
   else if(/*2nd Condition Test*/)
   {
        /*Executable statement if 2nd condition test be true*/
   }
   /*Similarly you can use more else if*/
   else
   {
        /*Executable statement if above all condition test be false*/
   }
Here else block is optional but if block is required. You can use nested if, if else, if else ladder statement within if, else if block.

Now run the following program and observe how it works.
#include <stdio.h>
int main()
{
    int number;

    scanf("%d",&number);

   if(number==0)
   {
       printf("%d is a ZERO.\n",number);
   }
   else if(number<0)
   {
        printf("%d is a NEGATIVE.\n",number);
   }
   else
   {
        printf("%d is a POSITIVE.\n",number);
   }

    return 0;
}

Conditional Operator in C

In decision making conditional operator is alternative of simple if else statement.

General form of conditional operator is:
(condition test) ? (/*Executable Statement if condition be true*/) : (/*Executable Statement if condition be false*/) 
You can assign the returned value from conditional operation.

Example: if we want to test and print 1 when it is even number and 0 when it is odd number by conditional operator, then the program can be as below:
#include <stdio.h>
int main()
{
    int value;
    value = 7;

    (value>0) ? (printf("Positive.\n") ) : (printf("Negative or Zero.\n"));

    return 0;

}

Nested of Conditional Operator

It is possible to make nested of conditional operator but it seems to so complex and should avoid it.

Example of nested conditional operator.
#include <stdio.h>
int main()
{
    int value, result;
    value = 7;

    result = ((value % 2)==0) ? 1 : 0;

    printf("%d\n",result);

    return 0;

}
You can observe the result by changing the value of value.

Remember: Parentheses is important whenever using nested in conditional operator.

Switch Statement in C

Switch statement is for making multi-way decision depending on various condition like if else ladder. But the significant difference between Switch and if else ladder are:
  • Switch statement is more faster than equivalent if else ladder.
  • Switch statement more efficient.
The general form of Switch statement in C is:
 switch(/*Arguement*/)
    {
    case /*Result of Test*/ :
        /*Executable statement if the above case satisfy*/;
        break;
    default:
        /*Executable statement if none the above case satisfy*/;
        break;
    }
Lets start to understand Switch statement.

 Switch, case, break, default are the main keyword in Switch statement.

Here switch is a built in function. The condition test / Expression/ variable within its parentheses works as argument of switch function.

Assume the result of argument may be 0, 1, 2 etc. Now case 0: means if the argument satisfy the result 0 then the executable statement will be … before break statement.

Break statement declares the end of Switch statement. That means, next case (case 1: , case 2: etc.) wont be checked, also default.
Default works as else in if else statement. If the none case satisfy to argument then the default block will be executed.

Remember:
  • Put colon (:) after case with value and default.
  • Put semicolon after break statement and executable statement.
  • Don’t put colon, semicolon or any special character after switch statement.
  • Put break statement at the end of every block.
  • Use proper indention as given.

Now run and observe the following program.
#include <stdio.h>
int main()
{
    int number;

    scanf("%d",&number);

    switch(number % 2)
    {
    case 0 :
        printf("Even.\n");
        break;
    default:
        printf("Odd.\n");
        break;
    }

    return 0;
}

Looking for more effecive Course?

C Programming For Beginners by Udemy icon
$15 (Original $145)
30-Day Money-Back Guarantee
Buy
Includes:
  • 6 hours on-demand video
  • 1 Article
  • 2 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
 Have got this article helpful or not working? Put your comment below.
Read More »

Loop in C Programming

Loop in C Programming is for beginners.

In childhood, my father told me, “Elliyas, Try this math until solve.” At that time what should I did.  I started trying to solve that math. Since that math was difficult to solve for that time, I was trying and trying but failed every time. After a time, I solved this math. 

If we try to organize the above occurrences step by step then it will be as below:

1. Start to solve the math.
2. Try to solve.
3. Is it end?
If yes then STEP 4, otherwise STEP 2.
4. Compare with answer.
5. Has it matched with answer?
If yes then STEP 6, otherwise STEP 1.
6. Finish.

This is algorithm (Sequence of work to finish successfully) to solve my math. In the above algorithm there has two loop (Repetition)  in STEP 3 and STEP 5 if the answer of question be NO.

Loop in C Programming

Assume another repetition problem to solve. If I tell you to print Hello World about 5 line, what will  be your program? Obviously, you will write code like below.
#include <stdio.h>
int main()
{
    printf("Hello World.\n");
    printf("Hello World.\n");
    printf("Hello World.\n");
    printf("Hello World.\n");
    printf("Hello World.\n");

    return 0;
}
Ok. But if I tell you to print this same message about 10000 line? It is so difficult and bored with this method, isn’t it? Then more, if we use this method, the code will be large.

Since the objective of programming is making life more comfortable, effective then the time is the great fact. To reduce time, labor, cost there has an option in C programming language and it is looping in C.

Different type of loop in C are available. Loops in C are:

1. For loop
2. While loop and
3. Do while loop.

There has another loop is called goto statement, we will discuss later.


Now we will discuss the three major loop in C Programming language.

For loop in C

The general form of for loop in C is:
    for(/*Initialization*/ ; /*Condition Test*/ ; /*Increment*/)
    {
        /*Body of for loop.  */
    }
What is initialization in for loop ?

Initialization in for loop is the lowest limit from start loop. To determine it needs to assign the lowest limit to a variable. This variable is called loop-control variable.

Suppose, we want to print 1 to 100 number with for loop. Then the lowest limit is 1 and we have to assign this value into a variable assume var. Then it will be:
int var = 1; It is called initialization and variable var is called loop-control variable in C.

Initialization in for loop is required.

What is condition test in for loop?

Condition test in for loop is the determination of loop iteration that depends on condition can be made with relational operator (Expressions with relational operator).

For the above example we have to determine the loop iteration. If we want to print 1 to 100 number with for loop, here 100 is our target. So we can make a condition to test for this as “Is the current number is 100? If yes then stop looping, otherwise increment.” For that the condition test with relational operator will be:
var <= 100 and it is called condition test in for loop.

What is increment in for loop?

Increment in for loop is essential to continue repetition/looping with definite interval manually required. To reach at the last number of above example with 1 interval we can do it as below:
var = var + 1 or we can do it with increment operator ++.

Example: var++  
What is body of for loop?

Body of for loop is a block that is enclosed with bracket where we can put any executable statement: if statement, nesting of for loop, break statement, another for loop, any expression etc.

Now the final program of printing 1 to 100 number sequentially with for loop is as below and observe this.
#include <stdio.h>
int main()
{
    int var;
    // Start For Loop
    for(var = 1; var <= 100; var++)
    {
        printf("%d\n", var);
    }
    // End of For Loop
    return 0;
}
if statement within for loop in C

Example:
#include <stdio.h>
int main()
{
    int var;
    // Start For Loop
    for(var = 1; var <= 100; var++)
    {
        if(var % 2 == 0)
        {
            continue;
        }
        printf("%d\n", var);
    }
    // End of For Loop
    return 0;
}
This program will print only odd number 1 to 99 sequentially.

Here continue is another statement that skip the result depending on condition within if statement.

Similarly you can use if else, if else ladder, switch statement within for loop.


More information about For Loop in C:

  • You can use decrement instead of increment.
    Example: x = x -2 or x-- etc.
  • You can use compound test-condition with logical operator.
    Example:  for(i=1; i<=10 && i >=5; i++)
  • You can initial, increment/decrement more than one variable with comma operator.
    Example: for(i=1, j=5; i<=10 && i >=5; i++, j--)
  • If you didn’t declare data type of variable that work in for loop, you must declare its data type when using.
    Example: for(int var = 1; var>=9; ++var)
Now write a program to print 2 to 100 even numbers sequentially with for loop in C.

While loop in C

While loop in C is the best and simplest alternative of for loop. If you don’t understand how for loop works, then you should try while loop.

The general form of while loop is:
/*Initialzation*/

while(/*Test Condition*/)
{
     /*Body of while loop*/

     /*Incrementing/ Decrementing*/
}
It is not necessary to describe about initialization, test condition, incrementing in loop again.

Don’t put any character (including comma, semicolon) after while .

Example of while loop in C:

The following program will print the sum of 1 to 100.
#include <stdio.h>
int main()
{
    int sum, counter;

    sum = 0; /*INITIALIZATION*/
    counter = 1; /*INITIALIZATION*/
    /*START OF LOOP*/
    while(counter<=100) /*TESTING*/
    {
        sum = sum + counter;

        counter++; /*INCREMENTING*/
    }
    /*END OF LOOP*/
    printf("Sum of 1 to 100 is %d.\n",sum); /*PRINT THE SUM OF 1 TO 100*/

    return 0;
}
Similarly for loop you can if, if else, if else ladder, switch statement, continue statement, break statement, nesting of any type loop within body of while loop.

Do while loop in C

The do while loop seems to while loop but different in functionally. Actually do while loop different from for loop also. Because this loop execute statement first within body then it check the condition . So it won’t be bad to say an impatient loop it.

The general form of do while loop in C:
/*Initialzation*/
do
{

   /*Loop Body*/
   /*Incrementing/ Decrementing*/
}
while(/*Test Condition*/);
Remember:
You have to put semicolon after while in do while loop but not after do.
You can put if, if else, if else ladder, switch, break, continue, functions, nesting of any kind of loop, any executable statement within loop of body.

Example of do while loop:

The above problem we have solved with while loop can solve with do while loop as below:
#include <stdio.h>
int main()
{
    int sum, counter;

    sum = 0; /*INITIALIZATION*/
    counter = 1; /*INITIALIZATION*/
    /*START OF LOOP*/
    while(counter<=100) /*TESTING*/
    {
        sum = sum + counter;

        counter++; /*INCREMENTING*/
    }
    /*END OF LOOP*/
    printf("Sum of 1 to 100 is %d.\n",sum); /*PRINT THE SUM OF 1 TO 100*/

    return 0;
}

Looking for more effecive Course?

C Programming For Beginners by Udemy icon
$15 (Original $145)
30-Day Money-Back Guarantee
Buy
Includes:
  • 6 hours on-demand video
  • 1 Article
  • 2 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Have got this article helpful or not working? Put your comment below.
Read More »

Best Online Computer Programming Courses With Guideline

The comprehensive guideline will help you to choose the best on-line computer programming training courses, free and paid.

At a glance
Best Online Computer Programming Courses With Guideline

Though it is a dopey and backdated question, why should you learn to Program? It may be Computer Programming or Web Programming, where UK government has put computing program of study in their National Curriculum to ensure all pupils that they can do the followings.
aims of putting compuing program in national curriculumn in England
Source: gov.uk


What said the famous technologist about programming to learn:

"Everybody in this country should learn how to program a computer. Because it teaches you how to think"
- Steve Jobs, the CEO and Co-Founder of Apple Inc. 

"More Kids should learn to program"
- Bill Gates, the Chairman of Microsoft on an interview by CNN.

The Guardian has published an article why every child should learn code. The writer of this article, Dan Crow has answered the question - Why it is so vital to teach coding our children? - as we are living such a time where we are dominated by Software.

Then more, if you need to the professional reasons why you should to learn code, read this article.

How to start learning code

How to start learning code:

  • Attend the coding game or learn code with fun program. For better, you can choose Code.org as learning code with fun. Like Minecraft Hour of Code, Moana: Wayfinding with code, Make a flappy game, Star wars: Make a galaxy with code  etc. , it offers a lot of funny program to learn code easily. You can make filter as your skill. You can install Kid app to learn code from INTERNET. 
  • Justify yourself, why should you learn code?
  • Select the best instructor and consult with your problems and target. Though it would be better to consult with instructor, you can also make decision from here.
  • Choose the programming language according to your target.
  • Take any coding course: Paid courses are always recommended. But you can take free coding course.
  • Read books are recommended by course instructor.
  • Be patient to complete course.
  • After completing course, grab free programming books, videos.
  • Try to create funny projects but small.
  • If you be interest to solve problem, then try online judge to solve problem with code.


Which programming language is the best to start learning code

Which programming language is the best to start learning code?

While determining to learn code, it is the vital question - which programming language is the best to start?

For Computer Science student, most of instructor suggest C/C++. But who are not student of Computer Science? For them? I have found, Python is the best programming language to start learning code for anyone.

Why?
TechWorm.net has put Python on the top as a programming language to start learning code for first-time programmers.

Don't bound yourself with my opinion. You can choose PHP, JavaScript, Java, Ruby, C#, .NET etc.

To determine the right programming language, you should emphasis on some points on the view of experts.

  • What is your goal to learn code? If Web Development, then choose HTML, CSS, JavaScript, PHP, Python, jQuery, Ruby etc. If Android Application, then choose Java, jQuery, XML etc. If Computer Application, then C/C++, C#, .NET, Python, Java etc.
  • Language is not more important than how you are skilled to implement program with code. Because the syntax may be some difference but the elements of programming language are same: I/O, Decision Making, Loop, Function, Data Structure, Operation etc.


 Free and Paid Coding Course - Which is better and why?

Free and Paid Coding Course - Which is better and why?

It is always true that, free coding course isn't rich and effective as paid coding course.
Here is the exclusive advantages of paid coding course:
  • You will get expert instructors with each course. So you don't need to hire any instructor separately. 
  • Paid coding course offers HD video, Document File, Code Source etc with each Lessons. 
  • Most of course program offer guarantee about satisfaction. So you can imagine how much this course is effective, helpful and organized.
  • If you face any problem to understand any lesson or topic, then you can get tech support from paid coding course organizer via email, live chatting etc. 
  • It describes less but teach much.
  • Most of program offer Diploma and Certificate Course.
Top Popular Programming Courses by Udemy
Course Name Price
C Programming For Beginners$15
The Ultimate Python Programming Tutorial$15
Ruby Programming for Beginners$15
Learn PHP Programming From Scratch$15
Programming Java for Beginners$15
It doesn't mean free coding courses are not so effective and resourceful. You can get such type services from free courses but not all.

Learn to Code!

Top Free Computer Programming Courses

1. MIT Course:

Features of MIT Courses:
  1. It is free.
  2. Home: You can check who are the instructor, how much time it will take, who are the eligible etc of the course.
  3. Syllabus: You can see overall this course at a glance.
  4. Reading: To understand the course and read, MIT Course suggest the reference book.
  5. Lecture Video: Lectures by Professor of MIT are available of each lesson.
  6. Lecture Slides and Codes: You will get Lecture Slides in PDF and Code of each lesson.
  7. In-Class Questions and Video Solutions: You can check yourself after completing each lesson and will get the solution with video.
  8. Assignment: After completing Lecture it offers Assignments on problem set to solve.
  9. Download Course Materials: You can easily download course materials so that you can learn from anywhere, anytime, without connecting INTERNET.

Course Name Level Course Link
Introduction to Computer Science and Programming in Python Undergraduate See Course
Introduction to Computational Thinking and Data Science Undergraduate See Course
Introduction to Computer Science and Programming Undergraduate See Course
Introduction to Electrical Engineering and Computer Science Undergraduate See Course
Introduction to Computers and Engineering Problem Solving Undergraduate See Course
A Gentle Introduction to Programming Using Python Undergraduate See Course
Introduction to Programming in Java Undergraduate See Course
Introduction to MATLAB Programming Undergraduate See Course
Introduction to MATLAB Undergraduate See Course
Elements of Software Construction Undergraduate See Course
Introduction to Algorithms Undergraduate See Course
The Battlecode Programming Competition Undergraduate / Graduate See Course

Free Programming Courses by Google

2. Google Course:

Course Title Level Course Link
C++ Beginner See Course
Python Beginner See Course
More Free Program by Google
Program Name Type Level Course Link
Blocky Games Funny Beginner See Program
Careers With Code Professional Intermediate See Program
Code Jam Code Competition Intermediate See Program
Codelabs Professional Intermediate See Program
Free Programming Courses by Microsoft

3. Microsoft Course:

Course Title Level Course Link
Introduction to Python: Absolute Beginner Beginner See Course
Introduction to Python: Fundamentals Beginner See Course
4. Codecademy Course: Codecademy offers free online Programming courses. This courses is very effective and helpful for beginners.

Features of Codeacdemy:
  • The easiest way to learn specific programming language for beginners.
  • Online Code Editor and Compiler are available.
  • Collect point by finishing lessons.
  • Each lesson is in-short but effective.
  • Quiz Yourself is available to check your skill.
  • Allow to discuss on community forum.
  • You can upgrade your account to get more features.
The courses by Codeacademy are distributed as below:
HTML and CSS, JavaScript, Python, Java, PHP, Ruby, Watson API,jQuery, ReactJS, Ruby on Rails, AngularJS etc.
5. HackerRank Course: If you have the basic concept of programming and want to learn specific programming language to solve code challenge and prepare yourself for interview then HackerRank is the best.

Features of HackerRank:
  • Learn Programming Language with solving code challenge.
  • Online Compiler is available. 
  • Rank yourself by completing and performing lessons.
  • Meet you with professional campus.
Programming Languages by HackerRank: C++, Java, Python, Ruby, SQL, Regex, Functional Programming.
president obama visits hours of code

6. Code.org :The CEO of Code.org, Hadi Partov has made this platform for the purpose to encourage students in US to learn code. It is the best and first recommendation to start learning code who doesn't know what is code, how work this, is it easy to learn, how to start etc. If offers some fantastic, funny and enjoyable program to learn code. So don't miss this program. It is free for all.

7. Khan Academy: It will help you to teach programming with JavaScript. Video Tutorials and Online Editor are available. Recommended for beginners.
Have got this article helpful or not working? Put your comment below. Best Online Computer Programming Courses free online programming courses for beginners
8. Alison: It offers free online courses by the top publisheres. It looks like Paid course. Video Tutorials are available. Very effective course to learn code. You can download study notes.  

Programming Languages by Alison: JavaScript and jQuery, C, C#, HTML 5, Perl, Python, Visual Basic, SQL, PHP etc.

Features of Alison:
  • Free courses.
  • You can purchase Diploma and Certificate Courses.
  • Video Tutorials are included.
  • Collect points and rank yourself.

Top Paid Computer Programming Courses

1. Udacity: Udacity actually offers free Online Programming Courses but paid for Nanodegree courses. You can browse your courses from here.

2. Coursera: It offers Python, Java, MATLAB, R, Parralel etc programming courses free and paid.

3. Udemy: Udemy is the best online course platform for professionals beside beginners. Java, PHP, C,C#, Go, NodeJS, Ruby, AngularJS etc programming courses are available. The price of each course is very low ($15) now. You can also get free courses for beginners from Udemy Free Programming Courses .

At a glance more On-line Programming Courses


Website Languages Free/Paid Level Online Compiler Remarks
TutorialsPoint Any Programming Language you want Free Absolute Beginner Yes Most growing popular Tutorial Point, Video, Text, PDF
W3Schools HTML/CSS, PHP, JS, JQuery & many elements of Web Free Absolute Beginner Yes Popular Platform to learn to build Website.
Programmiz C, C++, Python, Java, R, Kotlin, DS, Algorithms Free Beginner No
Learn Code The Hard Way C, Python, Ruby, SQL, JavaScript, Unix, Regex Paid Beginner Yes HD Video, PDF, Email Support, Free
C Programming C, C++ Free Beginner No
Learn-Programming C, C++, C#, Python, Java, PHP, Perl, Ruby, JavaScript, Go, HTML, CSS Free Beginner Yes Different website for specific language.
W3schools.in C, C+=, Java, PHP, DBMS, SQL, HTML/CSS,jQuery, XML, JSON, R, Android, SWIFT Free Beginner Yes No

Read More »