MCPcopy Create free account
hub / github.com/CodeWithHarry/The-Ultimate-C-Programming-Course / main

Function main

Chapter 3/05_else_if.c:3–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <stdio.h>
2
3int main(){
4 int age = 45;
5
6 if(age>60){
7 printf("You can drive and you are a senior citizen");
8 }
9 else if(age>40){
10 printf("You can drive and you are elder");
11 }
12 else if(age>18){
13 printf("You can drive");
14 }
15 else{
16 printf("You cannot drive");
17 }
18
19
20 return 0;
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected