Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int h;
- int flag=1;
- do
- {
- printf ("Enter height\n");
- scanf("%d",&h);
- if(h>23 || h<0)
- flag=1;
- else
- {
- flag=0;
- printf("height is %d",h);
- }
- }while(flag==1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement