/*
@Author: Mr.Suppakit Thongdee
@Website: www.sourcecode.in.th
*/
#include <stdio.h>
#include <conio.h>
void main(){
struct Student{
char name[20];
int age;
int stature;
} student[6];
int count=0;
clrscr();
printf("\t\t****************\n");
//Input
while(count<6){
printf("\t\tInsert Name:");
scanf("%s",student[count].name);
printf("\t\tInsert Age:");
scanf("%d",&student[count].age);
printf("\t\tInsert Stature:");
scanf("%d",&student[count].stature);
count++;
}
count = 0;
printf("\t\t----------------\n");
//Output
while(count<6){
if(student[count].stature<140 || student[count].stature>170){
printf("\t\tName:%s ,Age:%d ,Stature:%d \n"
,student[count].name
,student[count].age
,student[count].stature);
}
count++;
}
//system("pause");
getch();
}