Posts

Showing posts from May, 2021

How to write a program using case sensitive variables with a new equation of adding three variables then divided by two?

Image
What do you understand by the case sensitive variable with a new equation of program, the equation is D= (a+b+c)/2 for calculating input of variable in dynamic program? Introduction of the program adding three variable is divided by two The program calculates the equation by giving some variable value. The value of the variable will apply when the output screen will come after compiling the program. The equation of the program is adding three variables divided by two. The program type is a dynamic for applying the value of a variable during output. The output of the program is the same as the previous post for example... If you are giving the value of "a" variable is 2 and values of "b" and "c" are 3 and 5 respectively then the sum of these 10 is divided by 2 two according to the equation then the output is 5.  Remember in this program the data type is "int" integer has been used. The program doesn't give the output in decimal numbers. Note :

Write a program of dynamic value of a global variable using an equation for adding two variables?

Image
How to write a program of dynamic value of a global variable using an equation for adding two variables? How to use the dynamic value of a global variable? What is the global variable in the program? Global variable  The global variable is a type of variable that is declared over the body of the program and declared after the data type. The global variable takes the value for input in all over the program. How to use the dynamic value of a global variable? Why is the variable value dynamic in global variables? The dynamic value continuously changes when you compile or run the program again and again. It cannot take the previous value of the variable you decided or entered first. The value you are using at a time is temporary value during output screen of the program such as “a=34” and “b=45” are the value using at a time and calculated by the according to the equation which is given in the program or you had declared in the program is printed in the “c=79” variable. Image reference of

Write a program adding three variables which is in the form of constant if their value with their algorithm of a program

Image
How to write a program adding three variables which is in the form of constant if their value? In the program you have to need component of the program such as header files, for returning bulk value function, data type, constant form of variable, function for equation, output statement and some small parts are semi colon, inverted commas, curly braces etc. Components of a program for adding three variables of value In this program you want to need to declare the variable such as “a”, “b”, “c”, and “d” with their values according to your choices after declares the data type. Make an equation for three variable values according to equation. In the equation the adding operator uses in this equation for adding sum of three variable. This program is aim to practice the program and confirm you to verify that you can get sum of two or more than two variables in the constant program. Image reference of the adding of three variable values in constant program So here is the image of th

Let us discuss about the constant value in using float data type in programing C language.

Image
How to write a program using float data type with constant value of variable in programing C language? What is Float data type in programing language? Float data type The float is a short form of a floating point value in programing language. The value of float is a decimal term in the digits of mathematics such as decimal number is a “4.4”. Similarly the float is a data type in the programing language which holds the decimal value in a digit or number form. The float value number has take up to maximum 6 digits after decimal number. For example 5.000000 is a six digit after decimal number. So you can use the float data type in the programing “C” language to perform the function of adding, subtracting, multiplying and divide also. All are in the function you have to use float data type of variable if you want to perform these functions with the decimal number. Let us take an example of constant value of variable program with float data type in programing “C” language He