100% prog to print no of students with marks >90
#include<stdio.h>
void main()
{
int a[ ]={90,91,91,82,81,92,90};
int i, count=0; /*counts the no of students who got more than 90*/
void main()
{
int a[ ]={90,91,91,82,81,92,90};
int i, count=0; /*counts the no of students who got more than 90*/
for(i=0;i<7;i++)
{
if(a[i]>90)
{
count=count+1;
} //end of if
} //end of for
printf("\n number of students with marks more than 90: %d",count);
}
తెరమీద
number of students with marks more than 90: 3
కామెంట్లు
కామెంట్ను పోస్ట్ చేయండి
దయచేసి మీ సలహాలను సూచనలను స్పష్టంగా పేర్కొనగలరు. plz see that ur comments are 'acceptable' in a value based society.