අනුරාධගෙ දුප්පත් කැල් එක

AnuradhaRa

Well-known member
  • import java.util.*;
    public class Orange {

    public static void main(String[] args){
    Scanner myObj = new Scanner(System.in);

    int x = myObj.nextInt();
    String a = myObj.next();
    int y = myObj.nextInt();
    String b = "+", c = "-";

    if (b.equals(a)) {
    System.out.println(add(x,y));
    } else if (c.equals(a)) {
    System.out.println(minus(x,y));
    }
    }
    static int add(int x, int y) {
    int z;
    z = x + y;
    return z;
    }
    static int minus(int x, int y) {
    int z;
    z = x - y;
    return z;
    }
    }

    මේ ටික කලෙත් බෝම අමාරුවෙන්. ප්‍රෝග්‍රැමිං හරියන්නෑ මට
    පුලුවන්නං කියපල්ල ඉලක්කමක් ගහල හැම තිස්සෙම එන්ටර් එක ඔබන්නෙ නැතුව ඉන්ඩ ක්‍රමයක්
     
    Last edited:

    ryandok

    Well-known member
  • Oct 11, 2011
    13,684
    1
    3,804
    113
    වලපල්ලේ
    Design a calculator using visual C# with functions.

    * Basic Mathematical Operations: Addition / Subtraction / Multiplication / Division / Modulus / Exponent.
    * Advanced Mathematical Operations: Sin / Cos / Tan / Square Root
    * Patterns

    o Fibonacci
    o Triangular Number
    o Square number

    * Conversions:

    o Celsius and Fahrenheit
    o Conversion between mm/cm / m /km /inches
    o Conversion between mg/g/kg

    :P
     
    Last edited:

    Gwynbleidd

    Well-known member
  • Aug 7, 2020
    11,890
    22,229
    113
    Kaer Morhen
    thewitcher.com
    මේ ටික කලෙත් බෝම අමාරුවෙන්. ප්‍රෝග්‍රැමිං හරියන්නෑ මට
    පුලුවන්නං කියපල්ල ඉලක්කමක් ගහල හැම තිස්සෙම එන්ටර් එක ඔබන්නෙ නැතුව ඉන්ඩ ක්‍රමයක්
    gd job bn python wlin blpn lesi
     
    • Like
    Reactions: AnuradhaRa