Clipboard.

  • FTB will be shutting down this forum by the end of July. To participate in our community discussions, please join our Discord! https://ftb.team/discord

VikeStep

New Member
Jul 29, 2019
1,117
0
0
The code within the "if" statements isn't indented-- my programmer OCD is going crazy!

trust me, there is a lot more than that that is making me OCD. for example all the unneccessary lines where you can use /n or do age =int(input()). But anyways, its good for a tutorial
 

goreae

Ultimate Murderous Fiend
Nov 27, 2012
1,784
2,649
273
Raxacoricofallapatorius
It should be indented... I don't know why it isn't!
Because xenforo hates indentations. That's why.
I'm special.​
you're not.[DOUBLEPOST=1382548258][/DOUBLEPOST]print("What is your age?")
age = input()
age = int(age)
if age == 10:
print("What do you call an unhappy cranberry?")​
print("A blueberry!")​
elif age == 11:
print("What did the green grape say to the blue grape?")​
print("Breathe! Breathe!")​
elif age == 12:
print("What did 0 say to 8?")​
print("Hi guys!")​
elif age == 13:
print("Why wasn't 10 afraid of 7?")​
print("Because rather than eating 9, 7 8 pi.")​
else:
print("I don't know any jokes for your age.")​
 

whizzball1

New Member
Jul 29, 2019
2,502
0
0
Because xenforo hates indentations. That's why.
I'm special.​
you're not.[DOUBLEPOST=1382548258][/DOUBLEPOST]print("What is your age?")
age = input()
age = int(age)
if age == 10:
print("What do you call an unhappy cranberry?")​
print("A blueberry!")​
elif age == 11:
print("What did the green grape say to the blue grape?")​
print("Breathe! Breathe!")​
elif age == 12:
print("What did 0 say to 8?")​
print("Hi guys!")​
elif age == 13:
print("Why wasn't 10 afraid of 7?")​
print("Because rather than eating 9, 7 8 pi.")​
else:
print("I don't know any jokes for your age.")​
Thanks for the BB code. I'm on my iPad so I can see them.
 

whizzball1

New Member
Jul 29, 2019
2,502
0
0
System.out.println("Enter first number:");
fnum = operationscan.nextDouble();
System.out.println("Enter second number:");
snum = operationscan.nextDouble();
answer = fnum+snum;
System.out.println(answer);

Part of an if statement in Java. I'm making a calculator.
 

dgdas9

New Member
Jul 29, 2019
1,564
0
0
Mod Name:
Mod Version:
MCF post/website:
Favorite part about it:


I was going to suggest the dirt to diamonds mod, but I realized there was no 1.6 version of it...POKE!