Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Merry Christmas too !!
(All I want for Christmas is this code to be indeted and lowercased #saferForTheEyes) -
// C#
using System;
namespace xmas {
class Program {
static void main(string args[])
{
for (int i = 1; i <=3; i++)
{
Console.WriteLine("We wish you a
merry christmas, ");
}
Console.WriteLine("And a happy new year!");
}
}
} -
davide24928y//Java
for (int i = 0: i < 3; i++) {
System.out.println('We wish you a merry christhmas');
}
System.out.println('And a happy new year'); -
hrombach1788y@davide I'd remove the brackets around the for loop since it's a single statement. ;)
-
# Ruby
3.times{ puts "We wish you a merry christmas"}
puts "And a happy new year"
Merry christmas and a happy new year to all IT guys here ;))
undefined