Computer Science, asked by hayatsinan019, 5 months ago

write a program to print first 20 multiples of five​

Answers

Answered by Anonymous
2

Answer:

How do we write a program displaying the first ten multiples of five?

In R:

1:10*5

In Julia:

[1:10;]*5

In Python:

for i in range(10): print((i+1)*5)

In Java:

public class Example {

public static void main(String[] args) {

for (int i=1; i<= 10; ++i) System.out.println(i*5);

}

}

In C++:

#include <iostream>

int main() {

for (int i=1; i<=10; i++) cout << i*5 << endl;

return 0;

}

In C:

#include <stdio.h>

int main() {

int i;

for (i=1; i<=10; ++i) printf(“%d\n”, i*5);

return 0;

}

Answered by ADVIK143
3

Answer:

for x in range(1, 5*21):

if x % 5 == 0:

print(x)

Hope it helps!!

Have a great day!!

Similar questions