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);                                       ...

C Program to Write Square of any Number - Aman The Programmer

Calculate Square of any Number:

This Program is allowed to user, enter the number and get Square of that number. This program makes easy to calculate Square of any Number ......  https://youtu.be/9XJq-RYcYYo?si=XB6UVDBnHKjUsQh3


#include<stdio.h>

int main()
{

    int number, square;

    printf("enter the integer:");

    scanf("%d", &number);

    square = number * number;

    printf("the square of %d is %d", number , square);

    return 0;


}

Output:




Click here to get more Source Code: https://amantheprogrammer.blogspot.com/2024/10/html-code-for-beginners.html

https://youtu.be/iGJtLh0lsZo

https://youtube.com/@amantheprogrammer?si=O8SGDjNhKTD5Xs-N


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