input marks in computer of n number of students and display how many pass or fail pass Mark's is 40 (JAVA )
Answers
Answered by
0
Answer:
import java.util.*;
class calc
{
public static void main (String args[])
{
Scanner kb=new Scanner (System.in);
int n=kb.nextInt();
int m,count;
for(int I=0;I<n;I++)
{
m=kb.nextInt();
if(m>40)
count++;
}
System.out.println("children passed"+count);
}
}
Similar questions
Geography,
4 months ago
World Languages,
4 months ago
Math,
8 months ago
History,
8 months ago
Math,
1 year ago