Accept names of any 2 pupils and their height.display the name of the tallest person
Answers
Answered by
0
Calyx
Corolla
Androecium
Gynoecium
Answered by
1
Answer:
//Assuming it is Java programming
import java.util.*;
public class HtTall{
public static void main (String ar[]){
Scanner sc=new Scanner (System.in);
int a,b; //Height variable
String ab,bc; //Name variable
System.out.println("Enter name and height of 1st person");
int a=sc.nextInt();
String ab=sc.nextLine();
System.out.println("Enter name and height of 1st person");
int b=sc.nextInt();
String bc=sc.nextLine();
if(a>b)
System.out.println("Name:"+ab);
else
System.out.println("Name:"+bc);
}
}
•••♪♪
Similar questions
Political Science,
1 month ago
Physics,
1 month ago
Chemistry,
3 months ago
Math,
10 months ago
History,
10 months ago
Social Sciences,
10 months ago