Write a C program declare, initialize and access array of structure. In this post, I will explain how to declare, initialize and access array of structure in C programming. We will learn different ways of initializing structure array and accessing its.
Example
How to declare, initialize and access structures in C language
Write a C program to declare, initialize and access structures. In this post I will explain how to declare, initialize and access structures in C language. Different ways to initialize a structure variable and how to access structure members.
Java program to convert Fahrenheit to Celsius
Write a Java program to input temperature in Fahrenheit from user and convert to Celsius. How to convert Fahrenheit to Celsius in Java programming.
In the previous post, I explained to convert temperature from Celsius to Fahrenheit. In this post, we learn how to convert Fahrenheit to Celsius in Java.
Java program to convert Celsius to Fahrenheit
Write a Java program to input Celsius from user and convert temperature from Celsius to Fahrenheit. How to convert Celsius to Fahrenheit in Java.
In this on going Java programming examples, we will continue to enhance basic Java programming skills. In this post we will learn to convert given temperature from Celsius to Fahrenheit in Java.
Java program to find perimeter and area of rectangle
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.
Input
Length of rectangle = 30 Width of rectangle = 20
Output
Perimeter of rectangle is 100.0 units. Area of rectangle is 600.0 sq. units.
Java program to perform all arithmetic operations
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.
Input
First number: 15 Second number: 4
Output
Sum : 19 Difference : 11 Product : 60 Quotient : 3 Modulus : 3