ChorongBias

Untitled

Jan 11th, 2018
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. if (choice == 1)
  2. {
  3. for (j = 0; j < 12; j++)
  4. {
  5. printf("Enter number of injuries in ascending order for Pedestrians %d\n", j + 1);
  6. scanf_s("%d", &Pedestrian[j]);
  7. }
  8. for (j = 0; j < 12; j++)
  9. {
  10. printf("%5d", Pedestrian[j]);
  11. }
  12. }
  13. if (choice == 2)
  14. {
  15. for (j = 0; j < 12; j++)
  16. {
  17. printf("Enter number of injuries in ascending order for Motor Cyclists %d\n", j + 1);
  18. scanf_s("%d", &MotorCyclist[j]);
  19. }
  20. for (j = 0; j < 12; j++)
  21. {
  22. printf("%5d", MotorCyclist[j]);
  23. }
  24. }
  25. if (choice == 3)
  26. {
  27. for (j = 0; j < 12; j++)
  28. {
  29. printf("Enter number of injuries in ascending order for Motor Car %d\n", j + 1);
  30. scanf_s("%d", &MotorCar[j]);
  31. }
  32. for (j = 0; j < 12; j++)
  33. {
  34. printf("%5d", MotorCar[j]);
  35. }
  36. }
  37. if (choice == 4)
  38. {
  39. for (j = 0; j < 12; j++)
  40. {
  41. printf("Enter number of injuries in ascending order for Light Truck %d\n", j + 1);
  42. scanf_s("%d", &LightTruck[j]);
  43. }
  44. for (j = 0; j < 12; j++)
  45. {
  46. printf("%5d", LightTruck[j]);
  47. }
  48. }
  49. if (choice == 5)
  50. {
  51. for (j = 0; j < 12; j++)
  52. {
  53. printf("Enter number of injuries in ascending order for Truck %d\n", j + 1);
  54. scanf_s("%d", &Truck[j]);
  55. }
  56. for (j = 0; j < 12; j++)
  57. {
  58. printf("%5d", Truck[j]);
  59. }
  60. }
  61. }
Add Comment
Please, Sign In to add comment