A voir également:
- Very interesting
- Musique very bad trip 1 ✓ - Forum Cinéma / Télé
- Musique mike tyson very bad trip - Forum Musique / Radio / Clip
- Musique very bad trip 2 - Forum Cinéma / Télé
- The system has detected the storage capacity of the battery stated below to be very low - Forum Matériel & Système
- Phil collins very bad trip - Forum Musique / Radio / Clip
2 réponses
salut
1.Initialize an array of 30 element like int grades[30] and int grade to hold given grade from the user
2. Make a dialog mesage with the user to get grades from him:
int i=0;
while (i > 30){
printf(''Enter grade: ");
scanf("%d",&grade);
grade[i]=grade;
i++;
}
3. After storing all grade in the array, then start comparing them to get the maximum(highest result).
int max=grades[0];
for(int j=0; j < i ; j++){
if(max<grade[j]){
max=grade[j];
}
}
4. The value is max will be the highest note
cheers.
1.Initialize an array of 30 element like int grades[30] and int grade to hold given grade from the user
2. Make a dialog mesage with the user to get grades from him:
int i=0;
while (i > 30){
printf(''Enter grade: ");
scanf("%d",&grade);
grade[i]=grade;
i++;
}
3. After storing all grade in the array, then start comparing them to get the maximum(highest result).
int max=grades[0];
for(int j=0; j < i ; j++){
if(max<grade[j]){
max=grade[j];
}
}
4. The value is max will be the highest note
cheers.