#include<stdio.h>
int main()
{
int meter = 40;
double inch, feet;
inch = 39.37 * meter;
feet = 3.281 * meter;
printf ("The value of 40 meter in Inches is: %.2f \n", inch);
printf ("The value of 40 meter in feet is: %.2f", feet);
return 0;
}
What is public static method ?A static method in Java is a method that is an instance of a class rather than a member of it. Unlike methods defined in an instance, which may only be accessed by that particular object of a class, a method is accessible to every instance of a class. A static method is a component of a class specification rather than the objects it creates. A static method, as contrast to instance methods, is called without first constructing an object of the class and is referred to by the class name. In plainer language, these are methods that are available regardless of whether an object has been created yet and do not need an invocation object.
To know more about public static method , visit
https://brainly.com/question/26763726
#SPJ4