Write a C program to find maximum and minimum of two numbers using macro. How to find maximum or minimum between two numbers using macro in C program. Logic to find maximum and minimum using macro in C.

Continue reading C program to find maximum or minimum using macro# Tag Archives: Math

# C program to check even or odd using macro

**Quick links**

Write a C program to check even or odd using macro. How to check whether a given number is even or odd using macro in C program. Logic to check even or odd numbers using macro.

Continue reading C program to check even or odd using macro# C program to find square and cube of a number using macro – #define SQUARE(x), #define CUBE(x)

**Quick links**

Write a C program to find square and cube of a number using macro. How to find cube of a number using macro `#define`

preprocessor directive in C program. Logic to find square and cube of a number using macro.

# C program to find sum of two numbers using macro

**Quick links**

Write a C program to add two numbers using macros. How to add two numbers using macros `#define`

preprocessor directive in C program. Logic to add two numbers using macros.

# Java program to find power of any number using Math.pow()

Write a Java program to find power of any number using `Math.pow()`

. In this article, we will learn about `Math.pow()`

function. And see how to find power of any number in Java.

Continue reading Java program to find power of any number using Math.pow()

# Java program to convert days to years weeks and days

Write a Java program to input days from user and find total years, weeks and days. How to convert days to years weeks and days in Java programming.

Continue reading Java program to convert days to years weeks and days

# 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.

Continue reading Java program to convert Fahrenheit to Celsius

# 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.

Continue reading Java program to convert Celsius to Fahrenheit

# Java program to convert centimeter to inch, meter and kilometer

Write a Java program to input centimeter and convert to inch, meter and kilometer. How to convert centimeter to inch, meter and kilometer in Java programming.

Continue reading Java program to convert centimeter to inch, meter and kilometer

# Java program to find diameter, circumference and area of circle

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.

Continue reading Java program to find diameter, circumference and area of circle