Write a java script program to print your name 100 times?
Answers
Answered by
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
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