There are 32 Platforms in a railway station. Each platform status is displayed by Green or Red signal. Green signal indicates that there is a no train on the Platform & Red signal indicates train arrived at the platform. Develop a software to display at a moment how many platforms have Green signal. {C LANGUAGE }
Answers
Answered by
0
In 32 platform green platform will be 32platform
Answered by
3
#include<stdio.h> #include<conio.h> main(){ int platform = 32; int enter = 0; printf("\n Programto display total number of platorms having Green Signal!"); printf("\nEnter totalnumber of green signals:\n"); scanf("%d", &enter); printf("\n Total number of platforms with green signals are :" enter); getchar(1);} This is the progrm to determine total number of platforms having green signal.
Similar questions