Skip to main content

How to start programming for beginners

HOW TO START PROGRAMMING:

1. What is Programming?

Programming is a way of communicating with the computer and giving it set of instructions to do the work as per our needs.

Example:

  • While calculating something with a calculator what has to be done according to the input given to it is regulated by a program.
  • Programming can also be used to build a software to determine whether a particular number is prime or not.
2. Can anyone learn Programming ?

The answer to this question is simple YES anyone with basic knowledge of maths and some common sense can master programming. 

The most amazing example of this is Sundar Pichai the CEO of Google he Studied metallurgical engineering at IIT Kharagpur. So if you love it you can do it.

3. Why Should I learn Programming?

  • If you have that passion to solve a problem and enjoy twisting your mind then this is for you else you should leave programming right now.
  • The other important Factor is Money if you become a master in programming then there is no limit on how much you will earn.
4. Which language to start with?

As a computer science student according to my experience the best language to start programming is language. As it is said that language is the Mother of all languages and also it helps to clear the basics of a code and how different advance functions in languages such as python works.

  • I would like to ask you a question before going to school did you directly learned addition or you first learned numbers then addition ??
  • The same is the difference between starting your programming journey with Python rather than C language.

5. Which software to install for coding in C:

The two best software which you can opt for are
  • Code blocks
  • Turbo C++
both of them are good but code blocks has an edge above turbo C++.  

If you want to learn C language head out to my blog: 

https://www.codingninjaa.com/2020/05/how-to-learn-coding-for-beginners.html

Comments

Popular posts from this blog

C Programming Basics

C PROGRAMMING BASICS:
1. Introduction to C language: C language was invented in Bell Labs by Dennis Ritchie between 1972-73. C language is a case sensitive language i.e the input given to it varies according to upper and lower case letters. It is executed using binary form data such as (0,1). By using binary data the speed of executing a code increases.
1.1 Header Files:

Header files are those files which contain some predefined functions in it which we are going to use in our code. Every header file is accessed by appending an extension ".h".
Example: #include<stdio.h> ↓                   ⇡
         Tells computer to                  header file with 
         include the header                 extension .h
         file          
There are many header files for different functions such as the following: <conio.h><math.h><string.h>Etc.

1.2 Starting of code and basic Syntax:

void main() or int main()

This tells the computer from where the code is starting. It is wri…

Basic C Programming Questions

Basic Coding Questions:Exercise 1:Q1. Write a programme to calculate area and perimeter of rectangle by accepting its length and breadth.
Ans:
#include<stdio.h> #include<conio.h> void main() { float a,p,l,b; clrscr(); printf("\n enter the length and breadth of rectangle"); scanf("%f%f",&l,&b); a=l*b; p=2*(l+b); printf("\n the area of rectangle is %f and the perimeter is %f",a,p); getch(); }

The above image code is written in code blocks
Output:
enter the length and breadth of rectangle 20(press enter) 10(press enter) the area of rectangle is 200 and the perimeter is 60


Explanation of the above code: Declaring of variables in data type float since length and breadth cannot always be integers.Taking input of length and breadth together by using scanf function.Substituting the values of length and breadth stored in l and b to find out area and perimeter.Displaying the result.
Q2. Write a programme to calculate average of 5 numbers by taking input from user.
Ans: