write a java program to find the voltage using the formula v=i*r
Answers
Answered by
3
***********************************************************************************
import java.util.Scanner;
public class FindVoltage {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the current");
int i = sc.nextInt();
System.out.println("Enter the Resistance");
int r = sc.nextInt();
int v = i * r;
System.out.println("The voltage is " + v);
}
}
*************************************************************************************
Hope u like this
Similar questions