Yommy 265 Posted April 17, 2013 you guys are awesome <3 Share this post Link to post Share on other sites
latheesan 15 Posted April 17, 2013 <?php$peeps = array("Jezu","dastgirpojee","JayPee","nanakiwurtz","hemagx","malfuett","pr3p","nndsl","Zopokx","Vali","Virtue","M45T3R","Michieru","Judas","Beret","Yommy");echo "Hello ". implode(', ', $peeps) .'. I am Latheesan.';?> Share this post Link to post Share on other sites
clydelion 4 Posted April 19, 2013 o/ Hi I'm Asian. Err. I'm Clydelion Share this post Link to post Share on other sites
Patskie 88 Posted April 19, 2013 [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] /me joins the trend, in c.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;} /me does java version 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."); }} C# version : static void Main(string[] args) { string[] names = {"Yommy","Beret", "Judas", "hemagx", "Michieru", "M45T3R", "Virtue", "Vali", "Zopokx", "nndsl", "pr3p", "malufett", "hemagx", "nanakiwurtz", "JayPee", "dastgirpojee", "Jezu", "Jman", "Ind", "Nameless2you", "Squishyyy", "kyeme", "Frost", "MStream", "latheesan", "clydelion"}; string name = "Patskie"; for (int i = 0; i < names.Length; i++) { Console.WriteLine("Hello {0}, i am {1}", names[i], name); } Console.ReadLine(); } Share this post Link to post Share on other sites