Nameless2you
Purring
- Messages
- 735
- Points
- 0
- IRC Nickname
- Streusel
- Github
- Streusel
- Emulator
/me does java version/me joins the trend, in c.[cbox]<?php
$names = array("Jezu","dastgirpojee","JayPee","nanakiwurtz","hemagx","malufett","pr3p","nndsl","Zopokx","Vali","Virtue","M45T3R","Michieru","Judas","Beret","Yommy");
echo "Hi ";
foreach($names as $value) {
if ($value != "Yommy") {
echo $value." & ";
}
elseif ($value == "Yommy") {
echo $value.", ";
}
}
echo "I'm Jman.";
?>[/cbox]Code:int main(int argc, char **argv) { const char* peepz[17] = { "Jezu","dastgirpojee","JayPee","nanakiwurtz","hemagx","malufett","pr3p","nndsl","Zopokx","Vali","Virtue","M45T3R","Michieru","Judas","Beret","Yommy","Jman" }; int i; for(i = 0; i < 17; i++) { if( i != 16 ) printf("%s & ",peepz[i]); else printf("%s , ",peepz[i]); } printf("I'm Ind"); return 0;}
Code:
public class Hello{ public static void main(String[] args){ int i; String[] names = {"Jezu","dastgirpojee","JayPee","nanakiwurtz","hemagx","malufett","pr3p","nndsl","Zopokx","Vali","Virtue","M45T3R","Michieru","Judas","Beret","Yommy","Jman","Ind"}; System.out.print("Hi"); for(i = 0; i < names.length; i++){ System.out.print(" "+names[i]); if(i != (names.length-1)) System.out.print(" &"); if(i == (names.length-1)) System.out.print(".n"); } System.out.print("I'm Streusel."); }}
Last edited by a moderator: