Nwabueze Precious Akunna 18/sci01/055 Csc 206 1)#include int main() { int year; printf("Enter a year: "); scanf("%d", &year); if (year % 4 == 0) { if (year % 100 == 0) { // the year is a leap year if it is divisible by 400. if (year % 400 == 0) printf("%d is a leap year.", year); else printf("%d is not a leap year.", year); } else printf("%d is a leap year.", year); } else printf("%d is not a leap year.", year); return 0; } 2) #include void main() { int num1, num2, num3; printf("Enter the values of num1, num2 and num3\n"); scanf("%d %d %d", &num1, &num2, &num3); printf("num1 = %d\tnum2 = %d\tnum3 = %d\n", num1, num2, num3); if (num1 > num2) { if (num1 > num3) { printf("num1 is the max among three \n"); } else { printf("num3 is the max among three \n"); } } else if (num2 > num3) printf("num2 is the max among three \n"); else printf("num3 is the max among three \n"); 3) #include #include #include int main(){     char str[100], ch;     int i, grade[5];     float credit[5], gpa=0.0, totCredit= 0.0;     printf("Letter Grade and Credits for each subject: \n");     for(i=0; i<5;i++){         printf("Subject %d(Grade|Credit):",i+1);         ch = getchar();         grade[i]= ch;         scanf("%f", &credit[i]);         getchar();     }     printf("\nSubject | Grade |Credit\n");     for(i=0; i<5;i++){         printf(" %d | %c | %.0f\n ", i + 1, grade[i],credit[i]);     }     for(i=0; i<5;i++){         switch(grade[i]){             case 'A':                 gpa = gpa + 5 * credit[i];                 totCredit = totCredit + credit[i];                 break;             case 'B':                 gpa = gpa + 4 * credit[i];                 totCredit = totCredit + credit[i];                 break;             case 'C':                 gpa = gpa + 3 * credit[i];                 totCredit = totCredit + credit[i];                 break;             case 'D':                 gpa = gpa + 2 * credit[i];                 totCredit = totCredit + credit[i];                 break;             case 'F':                 gpa = gpa + 0 * credit[i];                 totCredit = totCredit + credit[i];                 break;             default:                 printf("Given Wrong Grade !!\n");                 exit(0);         }     }     printf("GPA: %f\tcredit: %f\n", gpa, totCredit);     gpa = gpa /totCredit;     printf("GPA for your score: %.2f\n",gpa);     return 0; }