In this article, I would like to share with you a sample program to ask the user to give three numbers and then the program will compute its sum and display the results on the screen.
This program will convert a temperature from Fahrenheit to Celsius using Java programming language.
Write a program that will ask the user to give the temperature in Fahrenheit and the program will convert the given temperature in Celsius and display the result on the screen.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.
This program will convert a temperature from Fahrenheit to Celsius using Java programming language.
Write a program that will ask the user to give the temperature in Fahrenheit and the program will convert the given temperature in Celsius and display the result on the screen.
If you like my work please click the ads on my website to support my work. I will really appreciate your help.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.
My personal website is http://www.jakerpomperada.com
Program Listing
package addition_numbers;
import java.util.Scanner;
/**
* Addition_Numbers.java
* @author Jake Rodriguez Pomperada,MAED-IT
* February 17, 2019 Sunday
* http://www.jakerpomperada.com
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental
*/
public class Addition_Numbers {
public static void main(String[] args) {
int a=0,b=0,c=0;
int sum = 0;
Scanner in = new Scanner(System.in);
System.out.println();
System.out.print("\t\tAddition of Three Numbers");
System.out.println("\n");
System.out.print("\tEnter First Value : ");
a = in.nextInt();
System.out.print("\tEnter Second Value : ");
b = in.nextInt();
System.out.print("\tEnter Third Value : ");
c = in.nextInt();
sum=(a+b+c);
System.out.println();
System.out.print("\tThe sum of " + a
+ ","+b+" and "+ c + " is " + sum +".");
System.out.println("\n");
System.out.print("\tEnd of Program");
System.out.println("\n");
}
}
No comments:
Post a Comment