Local Variables

Local variables are announced in systems, constructors, or scopes. Local variables are made when the constructor or method is entered and the variable will be decimated once it retreats the system, constructor or scope. Access modifiers can’t be utilized for neighborhood variables. Local variables are noticeable just inside the announced method, constructor or scope. Local … Read more

Java Variable Types

A variable gives us named capacity that our code can control. Every variable in Java has a particular sort, which decides the size and format of the variable’s memory; the scope of values that can be put away inside that memory; and the set of operations that can be connected to the variable. You must … Read more

C Program to calculate Area of Equilatral triangle

#include<stdio.h> #include<math.h> int main() { int triangle_side; float triangle_area, temp_variable; printf(“\nEnter the Side of the triangle:”); scanf(“%d”,&triangle_side); temp_variable = sqrt(3) / 4 ; triangle_area = temp_variable * triangle_side * triangle_side ; printf(“\nArea of Equilateral Triangle is: %f”,triangle_area); return(0); }