We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Introduction
- Welcome to Java!
- Discussions
Welcome to Java!
Welcome to Java!
Sort by
recency
|
582 Discussions
|
Please Login in order to post a comment
Wrong Answer :(
1/1 test case failed
Sample Test case 0
package pack1; public class temp {
float c,f; public void getval(float a) { c=a; System.out.println("Temp in celsius"+c+"degree"); } public void ctof() { f=(float)(c*1.8f)+32; System.out.println("Temp in farenhiet"+f); } } /Program to calculate simple interest/ Create a package with name pack2( steps: right click on your application->New->Java packages->type [pack1]in package name field->finish. package pack2; public class simple { float p,t,r,si; public void getdata(float a,float b,float c) { p=a; t=b; r=c; } public void cal() { si=p*t*(r/100); System.out.println("Simple interest is=" +si); } }
public class Solution {
} this program correct
public class Solution {
}
hello