A bus holds 45 people. The school will only use a bus if they can fill it completely. The rest of the people will ride in vans. Write a program that will take in the number of people that are signed up to go on a field trip. Have the program print the number of busses necessary and then total number of people that will need to ride in vans

for eclipse IDE

Respuesta :

The program that will take in the number of people that are signed up to go on a field trip is illustrated.

What is a program in computer?

A program is a set of instructions that a computer uses to perform a specific function.

The program will be:

#include <stdio.h>

int main(void)

{ int n;

  printf("Number of people that are signed up to go on a field trip: ");

  scanf("%d",&n);

 

  printf("Number of buses necessary = %d\n",(n/45));

  printf("Total number of people that will need to ride in vans = %d\n",(n%45));

  return 0;

Learn more about program on:

https://brainly.com/question/1538272

#SPJ1

Ver imagen topeadeniran2
ACCESS MORE