Computer Science, asked by siddharthasingh15, 8 months ago

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 a321038
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