Loops in C language | Part 4 = total programming,C language

                                                          Loops in C Language


So, hello guys today's topic is LOOP.lets talk about the loop=

A block of looping statements in C are executed for number of times until the condition becomes false.


'C' programming provides us
 
1) while = A "WhileLoop is used to repeat a specific block of code an unknown number of times until a condition is met. 

2) do-while = do...while loop is similar to a while loop, except the fact that it is guaranteed to execute at least one time.
 
3) for loop =while loop in C programming repeatedly executes a target statement as long as a given condition is true. Syntax.


*for loop example=

//example for loop

#include <stdio.h>
#include<conio.h>
void main() 
{
    int n, i;
    printf("Enter an number which multiplication table u want: ");
    scanf("%d", &n);
    for (i = 1; i <= 10; ++i) 
    {
        printf("%d * %d = %d \n", n, i, n * i);
    }
}


*do while loop example=
// do while loop

#include<stdio.h>
#include<conio.h> 
void main() 
{
    int a = 10;

do {
      printf("value of a: %d\n", a);
      a = a + 1;
   }while( a < 20 );
 
}

*while loop example=

// Print numbers from 1 to 5

#include<stdio.h>
#include<conio.h>
void main()
{
    int i = 1;
    
    while (i <= 5)
    {
        printf("%d\n", i);
        i++;
    }
}


all these three type of loop i explained in my YouTube video,please watch it.=



Flowchart = for loop





Flowchart = while loop



Flowchart = do while loop



Datatypes in C language | part 3 total programming = C language

                                                        Datatypes in C language


Hello, guys welcome to part 3 of total programming so today we are going to learn a new topic that is datatypes. so let's a startup to date stopping that is datatypes.

So there are two types of data types=
1] Primitive.
2] Derived. 
*the primitive data type is independent.
*the derived data type is dependent on the primitive data but a little bit to twist of the primitive data type.


I have all information related to this in my YouTube video, please watch it.=






Parts of Programs in C language | part 2 total Programming = C language

                                                  Parts of Programs in C Language


Hello guys this is the part 2 of the TOTAL PROGRAMMING. today, we are going to learn the some parts of the programs of  c language:-

                                          important things while writing program                                                                                                                                                                                                                                  1]Comment: Comment start with' /*' and end with '*/'. Comments are not mandatory but still it's a good practice if you use them, it improves the readability of the code. ...

  1. 2]Include section: While writing program we use several keywords & statements and functions such as printf(), scanf() etc.

My YouTube video please watch all the things are explained on it=


                                                parts of c programs=
In program before total c learning you can write \n \t.
\n and refers to the new line.
and \t refers to tab which means 5 space.

Important Things in C language | part 1 total Programming = C language

                                                   Important Things in C language


 * IMPORTANT THINGS IN C FOR BEGINNERS :-

             - Logic (in programs it is very important to use logic.Without it program can't be created)

             -Syntax (Syntax meaning in simple word is Language of programming )

             -Strategy(a plan that you use to put the things in programs)


*C language is a system programming language because it can be used to do low-level programming (for example driver and kernel). It is generally used to create hardware devices, OS, drivers, kernels, etc. For example, Linux kernel is written in C. It can't be used for internet programming like Java, .Net, PHP, etc.

my youtube video introduction to online C compiler , please watch =



Break and Continue in C language | part 9 =total programming

                           C break and continue Hello Guys, in this post I am going to show you C Break and Continue, So, Let get started = ...