Tuesday, 30 October 2018

A program of java using scanner class

Question:-Write a program to create a class employ and input number of days worked and rate perday Calculate wadges of the
employ and print all the details.

LET'S START OUR PROGRAM.

import java .util.*;
class employ
{
void main()
{
Scanner sc=new Scanner(System.in);//creating of object
System.out.println("enter per day rate of employ");
int r=sc.nextInt();
System.out.println("enter number of working day of employ");
int d=sc.nextInt();
int wedges=r*d;
System.out.println("wedges of employ is");
System.out.println(wedges);
}
}



THIS IS THE PROGRAM 
DO NOT FORGOT TO SHARE,LIKE,COMMENT ON MY VLOG.

THANKS FOR VISIT





No comments:

Post a Comment

HAY THAKYOU FOE VISIT

Program(python):-Find duplicates in an array (Geeks for geek problem)

QUESTION:- Given an array  a  of size  N  which contains elements from  0  to  N-1 , you need to find all the elements occurring more than o...