You are on page 1of 1

import java.util.

Scanner
class studentInfo
{
void stdinfo (String name,int id,double per)
{System.out.println("Nmae: "+name);
sytem.out.println("Id : "+id);
System.out.println("Per : "+per);
}

public static void main(String[] args)// calling method

System.out.println("Hello World!);
studentInfo si=new StudentInfo();
si.stdInfo("Kumar",345,76.45);// calling statement
system.out.println("---------------------");
si.stdInfo("Tejus",453,56.64);
system.out.println("---------------------");
scanner sc=new Scanner(System.in);
System.out.println("enter the Nmae id and per");
String nam=sc.next();
int id=sc.nextDouble();
si.stdInfo(nam,id,per);
}

Write a java Program for 3 integer value from the user & display geeta if the
number is divisible by 3,display sanju if number is divisble by 5 or display sanju
weds geeta if the number is divisble by both 3 & 5else display Break up

class LeapYear

write a jave program to read character from the user and display it is a vowel or
consonant
write a java program to return sys if number is divisble by 5 return buzz
if number is divisble by 7 else return "fizz & buzz" other wise return nullf the
number is divisible by both

You might also like