This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AddFractions extends ConsoleProgram | |
{ | |
public void run() | |
{ | |
int numFirst = readInt("What is the numerator of the first fraction? "); | |
int denFirst = readInt("What is the denominator of the first fraction? "); | |
int numSecond = readInt("What is the numerator of the second fraction? "); | |
int denSecond = readInt("What is the denominator of the second fraction? "); | |
int numTotal = ((numFirst * denSecond) + (denFirst * numSecond)); | |
int denTotal = (denFirst * denSecond); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import discord | |
from discord.ext import commands | |
from cogs.utils.dataIO import dataIO | |
'''Module for protecting your nickname in a server from being changed.''' | |
class NickProtect: | |
def __init__(self, bot): |