C programming for beginners -Episode 02 | How to use printf

C programming for beginners -Episode 02 | How to use printf

In this tutorial we are going to discuss , how to use printf statement in C programming. 

මේ tutorial එකෙන් අපි කතා කරමු කොහොමද print statement එක භාවිතා කරන්නේ කියලා.විඩියෝ එක youtube එකෙන් බලන්න ඔන්න පහල links තියෙනවා.

  
 [ Using printf statement & C basics ]


Here is the exercise we are going to discuss on this video tutorial.

  • Watch now the previous tutorial - Episode 01
  • Watch now this tutorial video on my channel:

  • Subscribe to my channel:
  https://www.youtube.com/channel/UCLD_EGJOhzPx4qu1OhOfeJg

මේ දේවල් ටික අපි කතා කරනවා මේ video එකේදී විස්තරාත්මක්ව සරලව.


01)   Print these things with one printf statement.



                                        I.             HELLO WORLD



                                      II.        Hello World

             I love programming



Iii.     Hello            World

              I            love            programming



     iv.              **

                    *****

                        **



02)   Printf(“I am %d years old” , 20);



03)   Printf(“I am %d years old ”, 19+1);



04)   Printf(“%s”,”Welcome”);



05)   Print your name , age , district , favorite subject in separate lines.



06)   Use comments to describe what you have done in question 04.



07)   What is the library you have used to take printing statement.(Printf)


Sample Answers : 
01)    Print these things with one printf statement.

I.    printf("HELLO WORLD");

II.    printf("Hello World \n I love programming");

Iii.     printf("Hello \t World \n I  \t love \t programming");

     iv. printf("\t ** \n ***** \t **");

02)    output : I am 20 years old
03)    output : I am 20 years old

04)    welcome

05)    printf("my name is nimal \n I'm 20 years old \n Colombo \n \n IT ");

06)    //describing my name,age,district and my favourite subject

07)    <stdio.h> library has used

 

ඔයා programming වලට ,IT වලට ආස කෙනෙක් නම් ඔයාට තියෙන හැම ප්‍රශ්නයක්ම විසදගන්න පුලුවන් community එකක් මේක.
Java , C ,C++, Python , JavaScript ,HTML ,C#, වගේ ගොඩාක් දේවල් ගැන කතා කරන්න, ඉගෙනගන්න , අලුත් දේවල් දැන ගන්න එකතු වෙන්න අපේ community එකත් සමග 💻🖱️
https://t.me/ProgrammingLoversBySathsara



Thank you for joining with me.
We will meet again with the Episode 03 of C programming tutorial serious.

Go here to the Episode 03  -



Comments

  1. Maath oyaage videos thamaa balanne blogger ekak hadaganna..good luck aiyaa😊❤

    ReplyDelete

Post a Comment

Popular posts from this blog

How to make a calculator using HTML, css, javaScript

How Stack works : with java

How to setup Python Environment in your PC