Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (choice == 1)
- {
- for (j = 0; j < 12; j++)
- {
- printf("Enter number of injuries in ascending order for Pedestrians %d\n", j + 1);
- scanf_s("%d", &Pedestrian[j]);
- }
- for (j = 0; j < 12; j++)
- {
- printf("%5d", Pedestrian[j]);
- }
- }
- if (choice == 2)
- {
- for (j = 0; j < 12; j++)
- {
- printf("Enter number of injuries in ascending order for Motor Cyclists %d\n", j + 1);
- scanf_s("%d", &MotorCyclist[j]);
- }
- for (j = 0; j < 12; j++)
- {
- printf("%5d", MotorCyclist[j]);
- }
- }
- if (choice == 3)
- {
- for (j = 0; j < 12; j++)
- {
- printf("Enter number of injuries in ascending order for Motor Car %d\n", j + 1);
- scanf_s("%d", &MotorCar[j]);
- }
- for (j = 0; j < 12; j++)
- {
- printf("%5d", MotorCar[j]);
- }
- }
- if (choice == 4)
- {
- for (j = 0; j < 12; j++)
- {
- printf("Enter number of injuries in ascending order for Light Truck %d\n", j + 1);
- scanf_s("%d", &LightTruck[j]);
- }
- for (j = 0; j < 12; j++)
- {
- printf("%5d", LightTruck[j]);
- }
- }
- if (choice == 5)
- {
- for (j = 0; j < 12; j++)
- {
- printf("Enter number of injuries in ascending order for Truck %d\n", j + 1);
- scanf_s("%d", &Truck[j]);
- }
- for (j = 0; j < 12; j++)
- {
- printf("%5d", Truck[j]);
- }
- }
- }
Add Comment
Please, Sign In to add comment