Computer Science, asked by annyong6, 6 months ago

19. Design a program in Java to display the following information on the output screen:
Name:
Class:
Roll No.:
Subject:
School:
20. You want to display your bio-data on the output screen. Write a program in Java to perform the task in the given format:
Name:
Father's Name:
Date of birth:
Blood Group:
Aadhar Card No.:
State:​

Answers

Answered by manasioc
0

Answer:

name

class

roll no

sub ject

school

Answered by samreenkhanum
4

Answer:

1.Ans:-import java.util.*;

public class cls print

{

public static void main [string args( )]

{

string n,sub,sch;

int g,r-no;

scanner 's'=new scanner ( system.in)

system.out.println("enter name,grade, roll no,subject,school");

n=SC.next(int)( );

g=sc.next (int)( );

r.no=sc.next (int)( );

sub=sc.next(int)( );

scl=sc.next (int)( );

system.out.printlin ("Name:"+n);

system.out.printlin ("Class:"+a);

system.out.printlin("Roll no:"+r-no);

system.out.printlin("subject"+sub);

system.out.printlin("school"+sch,);.

2.ans:-Same method as given above just change the following as in the question.

system.out.printlin("name:"+n)

system.out.printlin("father's name"+fn)

system.out.printlin("date of birth":+DOB

system.out.printlin("blood group":+Bg)

system.out.printlin("adhar card no":+an)

system.out.printlin("state":+s)

Explanation:

Hope it's helpful to you..

Similar questions