Write a method called wowzaCowza that prints the numbers from 1 to 100, one per line.

For multiples of three print

• Hi,

Look up the % (modulo) operator - if something % 3 == 0 then you know dividing three into it has no remainder and thus it is a multiple of three, for example.

Jonathan
###
for(74,117,115,116){\$::a.=chr};((\$_.='qwertyui')&&
(tr/yuiqwert/her anot/))for(\$::b);for(\$::c){\$_.=\$^X;
/(p.{2}l)/;\$_=\$1}\$::b=~/(..)\$/;print("\$::a\$::b \$::c hack\$1.");
• : Hi,
:
: Look up the % (modulo) operator - if something % 3 == 0 then you
: know dividing three into it has no remainder and thus it is a
: multiple of three, for example.
:
: Jonathan
: ###
: for(74,117,115,116){\$::a.=chr};((\$_.='qwertyui')&&
: (tr/yuiqwert/her anot/))for(\$::b);for(\$::c){\$_.=\$^X;
: /(p.{2}l)/;\$_=\$1}\$::b=~/(..)\$/;print("\$::a\$::b \$::c hack\$1.");

Thanks a lot!!! i appreciate it

is it ok if i ask you another question..???

********************************************************************
Consider the following infinite sequence of numbers:

0, 1, 1, 2, 4, 7, 13, 24, 44,
• public static void main(String args[])
{
int a = 1;
String W ="Wowza";
String C ="Cowza";

while (a <=100)
{
if ( a%3==0 && a%5==0)
{
System.out.println(W + C);
}
if (a%3==0)
{System.out.println (W);
}
else if (a%5==0)
{System.out.println(C);
}
else
{
System.out.println (a);
}

a++;

}

}
• public static void main(String args[])
{
int a = 1;
String W ="Wowza";
String C ="Cowza";

while (a <=100)
{
if ( a%3==0 && a%5==0)
{
System.out.println(W + C);
}
if (a%3==0)
{System.out.println (W);
}
else if (a%5==0)
{System.out.println(C);
}
else
{
System.out.println (a);
}

a++;

}

}