Computer Science, asked by nahu2, 1 year ago

Write the program with maximum three lines of code and that assigns first 5 multiples of a number to 5 variables and then print them

Answers

Answered by shravyakodli0598
4

Answer:

Class Main{

Public static void main(String args[])

{

int a=2,b=4,c=6,d=8,e=10;

System.out.println("%d"+"%d"+"%d"+%d"+"%d",a,b,c,d,e);

}

}

Answered by androgamer600
6

Answer:

x=int(input("Enter the number:"))

for i in range (1,6):

   print(x*i)

Explanation:

thank me later which school??

Similar questions