Ticket office discount program of c++ | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Ticket office discount program of c++

A array of persons . We give discount at the minimum age of the people.

28th Mar 2023, 4:04 PM
Sagar
1 Réponse
+ 1
#include <iostream> using namespace std; int main() { int ages[5]; int min=ages[0]; for (int i = 0; i < 5; ++i) { cin >> ages[i]; for(int j=0;j<5;j++) { if(ages[j]<min) { min=ages[j]; } } } //your code goes here double rslt; rslt /=100; rslt *=50; rslt =50-rslt; cout<<rslt; return 0; }
29th Mar 2023, 3:34 AM
Sagar