advictoriam

Untitled

Jan 8th, 2019
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. /**
  2.    A program to print algebraic expressions
  3. */
  4.  
  5. public class Algebra
  6. {
  7.    public static void main(String[] args)
  8.    {
  9.       System.out.println("Given: f(x) = 3x - 15");
  10.       System.out.println("Let x = 4");
  11.       System.out.println("Then");
  12.       System.out.println("f(4) = 3x4 - 15");
  13.       System.out.println("     = 12 - 15");
  14.       System.out.println("    = -3");
  15.    }
  16. }
Add Comment
Please, Sign In to add comment