Published May 5, 2022
2 mins read
403 words
This blog has been marked as read.
Double Click to read more
Academics and Education
Knowledge Sharing

C Programming Part 2 Example Coding And Simple Program..

Published May 5, 2022
2 mins read
403 words

Hello all now today blog is continuation of my first blog anybody cannot read the part 1 blog please read that and next continue to read this blog. Then only you understand all. Because I give some introduction of c programming in part 1.

In this part 2 I'm tell about sample program and easy way to learn simple program. 

After that we want to know about the software of c language it's an turbo c++ edition or application software,Borland c and ANSI c is an visual communication.

How to open c ,compile and run the c window here command window c:/ program d and make directory md create new folder and cd open folder and save and type the codings in c window.use the key to compile the program alt key and function 9 key,and use the key to run the program control key and function 9 key.

What is a compile?

    Here compile find out the error in our program coding that's called the compile.and also this compile option always visible in c programming software.

What is a run?

 Here after the compilation the program there is no we went run the program for output.this run option also always visible in c programming software.

  How to write and print a some words in c programming language?

 #include <Stdio.h>                             #include<conio.h>.                           Void main()

{

Clrscr();

Printf("candlemonk")

getch();

}

Here output is: candlemonk.

The output screen will be print this.

There are using header file print the letter or word this symbol is must in ; this c language because it's semicolon terminate that line and go to and perform with another line.

How to addition , subtraction and division value in simple program let see here.

Also using header file void main to give a program to print value a=6 and b=2 for add c=a+b then get this value

Output is A=6

B= 2

C=8

Here printing the addition values in output in this output window this are simple and sample coding for addition , subtraction,and division it's all print the value here int is an integer a,b,c it all variable declaration and store the values in this a,b,c.it is a simple and sample program c language.

Hope all of you understand this easy concept..

To be continued  part 3 c programming

10
6
sivabala007 5/5/22, 6:24 AM
1
Ur explanation is good sister
1
jana_23 5/5/22, 6:24 AM
1
Hello friends here some codings are not allowed because unknown language by candle monk so I finished shortly addition program
1
martin.d 5/5/22, 9:59 AM
Excellent
9207415368 5/5/22, 1:19 PM
Follow me too.nice writing
sheetal.thakur 5/6/22, 7:51 AM
Nice
lokeshbhandari821 5/6/22, 7:54 AM
Nice Blog Pls read mine too

Candlemonk | Earn By Blogging | The Bloggers Social Network | Gamified Blogging Platform

Candlemonk is a reward-driven, gamified writing and blogging platform. Blog your ideas, thoughts, knowledge and stories. Candlemonk takes your words to a bigger audience around the globe, builds a follower base for you and aids in getting the recognition and appreciation you deserve. Monetize your words and earn from your passion to write.