Displaying ./code/sternflCode/p9.c#include<stdio.h> //Cross the street //offer some advice int main() { int age; printf("Please enter your age (whole number) > "); scanf("%d", &age); if (age>=4 && age<=81) //&& is and //&& is true only when both of its parts are true printf("You can cross by yourself\n"); else { printf("Don't cross the street by yourself. Its not safe\n"); printf("Ask an adult to help you\n"); } } |