2.1
Chat with our AI personalities
On a scale for GPA where A =4,B=3,C=2, and D=1 then GPA = (4 x2) + (3 x 3) + (2x2) all divided by 7 to get average GPA = 3.0
If an A = 4 you have (3 + 2 + 2 +1)/4 = 8/4 = 2.0 GPA
c + d = 17.5 c - d = 12.3 c x d = 38.74 c/d = 5.73076923
a/b = c/d Multiply both sides by b/c Thus (a/b)*(b/c) = (c/d)*(b/c) ie a/c = b/d
#include <stdio.h> #include <conio.h> int main() { int a,b,c,d; printf("Enter any 4 numbers"); scanf("%d%d%d%d",&a,&b,&c,&d); if(a>b&&a>c) { else if(a>d) printf("%d is greatest",a); } if(b>a&&b>c) { else if(b>d){ printf("%d is greatest",b); } if(c>a&&c>b) { else if(c>d) printf("%d is greatest",c); } else { printf("%d is greatest",d); } }