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





A small java program using scanner class

A small java program for any platform not only for blue j

This is the program to calculate two variable given by user by using Scanner class.

import java.util.*;
class add
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.println("enre any two digits");
int n=sc.nextInt();
int n1=sc.nextInt();
int s=n+n1;
System.out.println(s);
}
}

this program will run in any platform without using blue j

Procedure i will give latter 

but ,dont forgot to like and share my vlog

THANKS FOR 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...