Keyboard would be the correct answer
Answer:
The codes below implement the problem statements
Explanation:
public class Percentages {
public static void computePercent (int a,int b)
{
System.out.println(a+" is "+(a*100/b)+"% of "+b);
}
public static void main(String []args)
{
int a=2;
int b=5;
computePercent(a,b);
computePercent(b,a);
}
}
<u>
</u>
<u>Part(b)
</u>
import java.util.*;
public class Percentages {
public static void computePercent (int a,int b)
{
System.out.println(a+" is "+(a*100/b)+"% of "+b);
}
public static void main(String []args)
{
Scanner s= new Scanner(System.in);
int a=s.nextInt();
int b=s.nextInt();
computePercent(a,b);
computePercent(b,a);
}
}
You never said what language so I used C
#include <stdio.h>
<span>int main () { </span>
<span> int a; </span>
<span> for( a = 3; a > 0; a-- ){ </span>
<span> printf("%i \n", a); }</span>
<span> printf(" Blast OFF !!!\n"); </span>
<span>return 0; </span>
<span>}</span>
PErfect! 100% Absolutely beautiful.