Write a Java program to input radius of circle and find diameter, circumference and area of circle. Logic to find diameter circumference and area of circle.
Write a C program to delete element from circular linked list by key. In this article I will explain how to delete by key element from circular linked list. I will explain logic and program to delete element from circular linked list by key.
Write a Java program to input length and width and find perimeter and area of rectangle. Logic to find perimeter and area of a rectangle, whose length and width are given. In this example we will learn to write basic logical program in Java. We will learn to find perimeter and area of rectangle.
Length of rectangle = 30 Width of rectangle = 20
Perimeter of rectangle is 100.0 units. Area of rectangle is 600.0 sq. units.
Write a Java program to perform all arithmetic operation. How to perform arithmetic operations in Java programming. In this example we will learn to input two integer from user and perform all arithmetic operations.
First number: 15 Second number: 4
Sum : 19 Difference : 11 Product : 60 Quotient : 3 Modulus : 3
Write a Java program to input two numbers add two numbers. In this example we will learn to use arithmetic operator to find sum of two numbers. We will learn to input two number from user and find sum of two numbers in Java.
First number: 10 Second number: 5
Sum of 10 and 5 is : 15
Write a java program to perform basic input using Scanner class. In this article I will explain how to input all basic data types using Scanner class in Java. We will learn how to use
java.util.Scanner class to input data from user.
Enter charater value: c Enter integer value: 10
You entered charater : c You entered integer: 10
Programming in Java has always been fun for me. With this post I begin the Java programming tutorials journey. In this post, we will learn how to write a simple Hello world program in Java. We will learn basic structure of a Java program, how to write, compile and execute a Java program.
Structures in C, is an advance and most popular topic in C language. It facilitates you to design your custom data type. In this tutorial, we will learn about structures in C its need, how to declare, define and access structures.
How to swap two nodes in a linked list is a popular problem in data structure. In this post I will explain how to swap two nodes in a linked list. I will explain to swap two nodes without swapping data in a linked list.
Write a C program to create a linked list and accept two node position from user. The program should swap two nodes in linked list without swapping their data.
Search is one of the most common operation on performed any data structure. In this post I will explain how to search an element in linked list (iterative and recursive) using C program. I will explain both ways to search, how to search an element in linked list using loop and recursion.
Write a C program to create a function to search an element in linked list. If element exists in the linked list then, it should return its index otherwise -1.