Computer Science, asked by pshpshgupta, 1 year ago

Write algorithm and a Java program for the following :-
1- Print,”welcome to the world of computer”.
2- Finding the sum of two numbers.

Answers

Answered by mahahiranya
1

JAVA program:

1)

public class Welcome

{

  public static void main(String argr[])

   {

       System.out.println ("Welcome To The World Of Computer");

    }

}

2)

public class Sum

{

  public static void main(String args[])

  {

      int a=25;

      int b=30;

      int c=a+b;

      System.out.println ("c")

      }

}

Similar questions