Does Anyone Know C++?
Posted by: wesnr
Date: 2008-12-12 23:32:18
Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.
You can join Glitch City Research Institute to ask questions or discuss current developments.
You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.
#include <stdio.h>
int main()
{
int a, b, c, d;
printf("Enter the first value:\n");
scanf("%d", &a);
if ((a != 1337) && (a != 666))
{
b = 1337;
printf("Fuck you, we'll go my way. It'll be %d.\n", b);
}
else
{
b = a;
}
printf("Enter the second value:\n");
scanf("%d", &a);
if ((a == b) || ((a != 1337) && (a != 666)))
{
if (b == 1337)
{
c = 666;
}
else if (b == 666)
{
c = 1337;
}
printf("Fuck you, we'll go my way. It'll be %d.\n", c);
}
else
{
c = a;
}
d = b + c;
printf("%d + %d = %d\n", b, c, d);
if (d == 2003)
{
printf("%d + %d = %d?! OMFG.\n", b, c, d);
}
return 0;
}