Laboneelcset2


Problems

Problem Points AC Rate Users
labones2_1 10 0.0% 0
Labonesetwoq2 10 41.7% 18

Comments


  • 0
    ELC22052  commented on May 10, 2023, 11:24 a.m.

    int main(){ int row[2][7]; int i,j,min1,min2; min1=0; min2=0; for(i=0;i<2;i++){ for(j=0;j<7;j++){ scanf("%d",&row[i][j]);

        }
    }
    for(i=0;i<1;i++){
        for(j=0;j<7;j++){
                if(row[i][j]>min1){
                    min1=row[i][j];
                }
    
        }
    }
        for(i=1;i<2;i++){
            for(j=0;j<7;j++){
                if(row[i][j]>min2){
                    min2=row[i][j];
                }
    
        }
    }
    printf("%d \n",min1);
    printf("%d",min2);

    }


  • 0
    ELC22012  commented on May 10, 2023, 11:18 a.m.

    include<stdio.h>

    int main () { int a; int b; int c; printf("enter the coeffitient of xx\n"); scanf("%d" ,&a); printf("enter the coeffitient of x\n"); scanf("%d" ,&b); printf("enter the value of c\n"); scanf("%d" ,&c); int p; p=(-b+(bb-(4ac))1/2)/2a; int n; n=(-b-(bb-(4ac))1/2)/2*a; printf("The solutions of the equation are %d and %d", p,n); return 0; }