Singly Linked List in C with Code and Explanation

Image
                        Singly LinkedList (SLL)   A Singly Linked List is a linear data structure where each element (called a node ) points to the next node in the sequence.  It is a dynamic structure , meaning it can grow or shrink in size during runtime .  Structure of a Node:  Each node contains: - Data : The value stored in the node. - Next : A pointer / reference to the next node in the list . There are Five operation in SLL: 1) Insert - Insert the element in our node like, insert(34);                                                                            insert(3);                                       ...

Write any Table by using Programming

You can write any table of any number


code :


#include<stdio.h>

int main()

{
    int i,number;

    printf(" Enter the number :");

    scanf("%d", &number);

    for(i=1; i<=10; i++)

    {
        printf("%d\n", i*number );


    }

    return 0;

}

Output:

 Enter the number : 8 //you can enter any number
8
16
24
32
40
48
56
64
72
80

 Click the Link,Practice more Problem:

Comments

Popular posts from this blog

Selection sort (code & Algorithm)

Multiplication of two number by using C Programs

Addition of two Number using c language code