problem 23


#include <stdio.h>

int main() {
    int p, h, w, count = 0;

    for (p = 0; p <= 5; p++) {
        printf("Enter details of person %d:\n", p + 1);
        printf("Enter height: ");
        scanf("%d", &h);
        printf("Enter weight: ");
        scanf("%d", &w);
        if (h > 170 || w < 50) {
            count++;
        }
    }
    printf("Persons having height > 170 and weight < 50: %d", count);
    return 0; 
}

Contact Form