#include
#include
#define PI 3.14159265
using namespace std;
int main()
{
double c;
while (1)
{
for(double a = -PI; a< PI; a+=0.35)
{
c = sin (a)*10;
if (c>0)cout
#include
#include
#define PI 3.14159265
using namespace std;
int main()
{
double c;
while (1)
{
for(double a = -PI; a< PI; a+=0.35)
{
c = sin (a)*10;
if (c>0)cout
epic
this also works without the if statement
shit code
>using namespace std
>#define PI
>genius
lmao
>genius programmer
Probably because your parents think so.
nitpicking retards
he's right
#include
#include
#define PI 3.14159265
using namespace std;
int main()
{
double c;
while (1)
{
for(double a = -PI; a< PI; a+=0.35)
{
c = sin (a)*10+10;
for (int b=0; c>b; b++)cout
but why
u could've photoshopped that. that's no proof it works
user, I...
Me too, my programs never crash.
int main() {
start:
try {
// insert code here
}
catch (Exception) {
goto: start;
}
}
>two for in a while
puke
*blocks your path*
exit(-1)
#include
#include
#include
int main(void) {
int c = 0;
for(double i=0;; i+=0.35) {
c = (int) (sin(i)*10+20);
printf("%*s", c , "waves\n");
}
}
>genius programmer
>not using python
I don't understand how this works
imagine this for loop as
double i=0
while(true) {
//everything that was inside
i=i+0.35;
}
c is optimised to one line and printf is being printf with its formatting (I rarely work with printf, "%stuff" tells compiler how should it represent variable(s) that are next argument(s), in this case "%*s" tells it what to do with variable c; learning how this printf magic works is your homework (and I guess mine too now)
#include
#include
#include
int main(void) {
for(double i=0;; printf("%*s", (int) (sin(i+=0.35)*10+20), "waves\n"));
}
what is stdlib.h there for
Diversity
because even I sucks cocks. Nice catch!
he's using the sine function. are you a high schooler?
so that the libs get std
kek
!!! ALERT !!! ~~ WARNING ~~
This is a hack! It looks innocuous, but it has hidden characters. DO NOT BUILD AND RUN THIS! It opens ports on your PC and allows an attacker to connect remotely to your PC.
You've been warned!!
...