ProgrammingKida

Wednesday, 11 December 2019

Write a Java Program to add two integer x and y

Program :

class Addition 
{
public static void main(String[] args) {
int x = 5 ;
int y = 7 ;
int A ;
A = x+y ;

System.out.println("Addition is "+A);
}
}

Output :


at December 11, 2019
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: calculate square

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Write a java program to input marks of 5 student if 5 subject out of 100 marks each , output sum and percentage of marks and appropriate division i.e distigusion first class upto fail

Programe : import java.util.*; class Student { public static void main(String args[])     {     Scanner s = ...

Search This Blog

  • Home

About Me

My photo
Samiksha raut
View my complete profile

Report Abuse

Labels

  • addition of two of integer
  • addition of two of integer.
  • Arithmatic Operation
  • calculate cube
  • calculate square
  • calculate SquareRoot of a no
  • fibonacci series
  • function expo()
  • Greatest among Three number
  • Greatest no
  • Java program
  • math
  • math function abdolute()
  • math function absolute()
  • math function expo()
  • Math function max()
  • math function min()
  • math function power()
  • palindrome no
  • Prime No
  • print star design
  • scanner class
  • sum of digit
  • Swaping using third variable
  • Switch case program
  • Use of increment and decrement operator

Blog Archive

  • January 2020 (1)
  • December 2019 (22)

Programming Kida

My photo
Samiksha raut
View my complete profile

Contact Form

Name

Email *

Message *

Watermark theme. Powered by Blogger.