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
using System; | |
class PiggyBank | |
{ | |
static void Main() | |
{ | |
int price = int.Parse(Console.ReadLine()); | |
int partyDays = int.Parse(Console.ReadLine()); | |
if (partyDays > 8) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
class PrimeCheckerMethod | |
{ | |
static bool PrimeChecker(long input) | |
{ |
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
using System; | |
class FibonacciNumbers | |
{ | |
static void Main() | |
{ | |
int n = int.Parse(Console.ReadLine()); | |
int a = 0; | |
int b = 1; |
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
using System; | |
class FormattingNumbers | |
{ | |
static void Main() | |
{ | |
Console.WriteLine("Please enter one three numbers:"); | |
int a = int.Parse(Console.ReadLine()); | |
double b = double.Parse(Console.ReadLine()); |
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
using System; | |
class NumberComparer | |
{ | |
static void Main() | |
{ | |
Console.WriteLine("Please enter two numbers:"); | |
double a = double.Parse(Console.ReadLine()); | |
double b = double.Parse(Console.ReadLine()); | |
Console.WriteLine(Math.Max(a,b)); |
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
using System; | |
class CircleParameterAndArea | |
{ | |
static void Main() | |
{ | |
Console.WriteLine("Please enter radius of your circle:"); | |
double r = double.Parse(Console.ReadLine()); | |
double perimeter = 2 * Math.PI * r; |
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
using System; | |
class PrintCompanyInfo | |
{ | |
static void Main() | |
{ | |
Console.Write("Enter Company Name:"); | |
string coName = Console.ReadLine(); | |
Console.Write("Enter Company Address:"); |
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
using System; | |
class SumOfThreeNumbers | |
{ | |
static void Main() | |
{ | |
Console.WriteLine("Please enter three numbers"); | |
double numberOne = double.Parse(Console.ReadLine()); | |
double numberTwo = double.Parse(Console.ReadLine()); |
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
package com.company; | |
import java.text.DateFormat; | |
import java.text.MessageFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.Scanner; | |
public class Main { |
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
using System; | |
class QuadraticEquation | |
{ | |
static void Main() | |
{ | |
Console.WriteLine("Please enter \"a\":"); // takes the value of the coefficients | |
double a = double.Parse(Console.ReadLine()); | |
Console.WriteLine("Please enter \"b\":"); | |
double b = double.Parse(Console.ReadLine()); |
NewerOlder