import java.util.Scanner;
public class Main
{
public static int quadruple(int n){
return (n*4);
}
public static void main(String[] args) {
System.out.println("Enter five integers: ");
int arr[]=new int[5];
Scanner in=new Scanner(System.in);
for(int i=0;i<5;i++){
arr[i]=in.nextInt();
}
for(int i=0;i<5;i++){
System.out.println("Quadruple of "+arr[i]+" is "+quadruple(arr[i]));
}
}
}
Comments
Leave a comment