♦ C Numbers
♣ About C Numbers
The mathematical numbers can be categorized in two types in C language:-Integer and Float.
Let us see the explanation with examples.
♣ Example1: Integers in C
Integer data type is used to store non-fractional real numbers in C.Although there exist a range of Integers which can be stored, which is explained in Data Types section.
In this example, various integer operations are given.
Example
Input:
Output:
♣ Example2: Float in C
Fractional numbers are stored in Float data type.Also, there exists a range of Float which can be stored, which is explained in Data Types section.
In this example, various float point operations are given.
Example
Input:
Output:
♣ Example3: Double in C
Double is preceded with int or float for increasing the precision of storing value.Also, there exists a range of Double which can be stored, which is explained in Data Types section.
In this example, various float point operations are given.
Example
Input:
Output: