Write a program in Java that generates the following table:
1990 135
1991 7290
1992 11300
1993 16200
Answers
Answered by
10
Explanation:
class Brainly
{
public static void main(String args[])
{
int i, arr[] = {135, 7290, 11300, 16200};
for(i = 1990; i < 1994; i++)
{
System.out.println(i+ " "+arr[i-1990]);
}
}
}
Output:
1990 135
1991 7290
1992 11300
1993 16200
Hope it helps!
Attachments:
BrainlyPromoter:
Thank you so much!
Answered by
2
here is your answer
Similar questions