Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* input 5 students age and check how many of those are teen*/
- #include<stdio.h>
- int main(){
- int a,c,t;
- t=0;
- for(a=1;a<=5;a++){
- scanf("%d",&c);
- if(c>=13 && c<=19){
- t=t+1;
- }
- }
- printf("number of teen student is %d",t);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement