A college has 50 students. Each student’s name, address, and code must be input. The code can be either 1 or 2: code 1 = Correspondence, code 2 = Fulltime. An error message must be printed if the user inputs a code that is not 1 or 2. Print out an address label for each student with a message indicating whether he/she is studying by correspondence or not. Determine and print out the total number of full-time students.
Aucun commentaire:
Enregistrer un commentaire