Computer Programming Learning Part-01||Week-01||Addition of two numbers by computer C program.
Steemian Friends,
Today, I am going to post Learning Part 01 on Computer Programming. Since this is my first post, I am writing a few words first, mentioning the reason for such a post. I hope everyone will like and benefit from my writing on computer programming.
Design By Canva
I am an electrical engineer. I studied electrical. However, while studying electrical engineering, I had to study computer programming. From there, I liked computer programming. However, due to my job and family reasons, I could not continue further studies in computer programming. From now on, I want to write about computer programming on the Steemit platform to increase my knowledge and inspire my other Steemian friends about computer programming. That is why I write about computer programming.
I am not a big expert in computer programming. But I will learn computer programming by myself from now on and write about it on the Steemit platform. Then, I will learn by myself and inspire other friends. I will start with the basic computer programming languages C and C++. Because C and C++ are the mother languages of programming. I will be programming with C and C++ one by one in each post so I can get a better understanding of C and C++ at some point.
Then, I will learn computer programming languages Python, PHP, HTML, and other languages. But if you know C and C++, you can easily learn other computer programming languages. Hopefully, my Steemian friends and I will benefit from the Steemit platform.
Today, I will demonstrate adding two numbers with the computer program C. Let's start with the simplest program in computer programming. First, I wrote down the program on an A4-size paper. Then, I will write it in the computer's C program software, called code blocks, and show the output.
Then I turn on the previously set-up C program software code blocks File on my computer. Then I go to File and click on New. When I click on Empty File, the program writing page comes up. It is shown as a red block in the image below.
Then, I start writing the program on my paper handwriting it on the computer. First, I write the Header File, main function, and program structure. These three parts should always be written at the beginning of writing a C program. They are shown in the picture below.
Then, I wrote the variable declare program. It is shown as a red block in the image below.
Then, I wrote the program to input the first number to add the two numbers. It is shown as a red block in the image below.
Then, I wrote the program to input the second number. Which is shown in the red block in the image below.
Then, I wrote a program to add two numbers. Which is shown in the red block in the image below.
Then, I wrote the program to see the output after adding my two numbers. It is shown as a red block in the image below.
I then finished writing my entire program. Now, I click on the Run button above. If there are mistakes in writing my program, they will be shown below. Since there are no mistakes in writing my program, a black page is opened directly. Here, first, I input five as the first number from the board and click enter. Then, I click the enter button with the second number, 5. Then, I see my desired result: 10. It is shown as a red block in the image below.
Hi, Greetings, Good to see you Here:)
Thank you, friend!
I'm @steem.history, who is steem witness.
Thank you for witnessvoting for me.
please click it!
(Go to https://steemit.com/~witnesses and type fbslo at the bottom of the page)
The weight is reduced because of the lack of Voting Power. If you vote for me as a witness, you can get my little vote.
This is my Twitter share link :
https://twitter.com/mahadih83660186/status/1783857617397506467?t=KGvf4JLb1L4cGXZRuhfAww&s=19
Upvoted. Thank You for sending some of your rewards to @null. It will make Steem stronger.