<h2>double, long, float, short, byte</h2>
Explanation:
The given data types are built-in types. According to java, the following holds right to justify the order.
Double:
- This occupies 64 bits
- It can hold decimal values
- Example: "1.23456e300d, -1.23456e-300d, 1e1d"
Float:
- It occupies 32 bits
- Holds decimal values
- Example: "1.23e100f, -1.23e-100f, .3f, 3.14F"
Long:
- It occupies 64 bits
- Example: "-2L, -1L, 0L, 1L, 2L"
Short:
- It occupies 16 bits
- Stores twos complement integer
Byte:
- Stores twos complement integer
Answer:
Following are the code to the given question:
#include <iostream>//header file
using namespace std;
int main()//main method
{
int r=26,x,y;//defining integer variable
char c;//defining a character variable
for(x= 1; y<= r; x++)//using for loop for count value
{
for(y= 1; y<= x; y++)//using for loop to convert value in triangle
{
c=(char)(y+64);//convert value into character
cout << c;//print character value
}
cout << "\n";//use print method for line break
}
return 0;
}
Output:
Please find the attachment file.
Explanation:
In this code, three integer variable "x,y, and r", and one character variable "c" is declared, that is used in the nested for loop, in the first for loop it counts the character value and in the next for loop, it converts the value into a triangle and uses the char variable to print its character value.
I’m not sure but I think it belongings.