Computer Science, asked by 768429, 4 months ago

Write a java script program to print your name 100 times?

Answers

Answered by ITZProGaurav2
0

for (x=1; x <= 100; x++){

if( x % 3 == 0 ){

write("ping")

}

if( x % 5 == 0 ){

write("pong")

}

if( ( x % 3 != 0 ) && ( x % 5 != 0 ) ){

write(x)

}

}

Answered by TheUntrustworthy
0

Java program to print your name 100 times:

class Name

{

public static void main (string args [])

{

int c=0;

while (c<100)

{

System.out.println ("Jalaj");

c++

}

}

}

Similar questions