r/programminghelp • • Dec 25 '18

How to program something to the effect of "I love you!"?

My boyfriend is a programmer and works mainly with angular, c sharp, and I think Java script (I think he works with a few others but it's hard for me to keep up).

Anyways, obviously programming languages don't clearly translate like another language. But I want my first time telling him I love him to be in one of the programming languages he uses. Can someone help me?!?!?

Tldr: can you code something that says "I love you!" For me?

6 Upvotes

4 comments sorted by

5

u/przm_ Dec 25 '18 edited Dec 25 '18

That’s really cute! Here is the code in C# which outputs “I love you!” into the console/terminal. I used a different website because I’m on mobile and can’t figure out how to properly format code on reddit. https://dotnetfiddle.net/Hw31Zt

EDIT: Here is the code, you can add (almost) anything in between the quotations and it will be outputted to the console/terminal when executed :).

using System;			
public class Program
{
	public static void Main()
	{
		Console.WriteLine("I love you!");
	}
}

4

u/FredTargaryen Dec 25 '18

Pretty much just write this in a card; that would do for me. If he doesn't correct your syntax he's a keeper

2

u/manrodriguezf Jan 04 '19

-Partner executed program

-Honey... thank you, but, You know could've abstracted the printing of that message into a service interface... Right? :D

1

u/links_own Dec 26 '18

console.log('I love you!');