Computer Science, asked by BrainlyPromoter, 1 year ago

Write a program in Java that generates the following table:
1990 135
1991 7290
1992 11300
1993 16200​

Answers

Answered by siddhartharao77
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!
siddhartharao77: Welcome :)
Swetha02: Amazing!
siddhartharao77: Thanks chelli
Swetha02: Welcome...
Answered by asritadevi2344
2
here is your answer

<br /><br />&lt;html&gt;<br /><br />&lt;body&gt;<br /><br />&lt;svg height="210" width="500"&gt;<br /><br />&lt;polygon points="100,10 40,198 190,78 10,78 160,19&lt;svg height="210" width="500"&gt;<br /><br />&lt;polygon points="100,10 40,198 190,78 10,78 160,198" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:nonzero;"/&gt;8" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:nonzero;"/&gt;<br /><br />&lt;/svg&gt;<br /><br />
Similar questions