Share Your Problem and Exercise

Share Your Problem and Exercise

Share Your Problem and Exercise

Number of replies: 1

Write your understanding of this topic or Share your drive link of your project.

In reply to First post

Re: Share Your Problem and Exercise

by Md Salah Uddin -
// Online C compiler to run C program online
//10,20,45,78,90
#include
int main() {
int ifti[5]={10,20,30,5,6};
int habiba[5]={8,15,35,5,7};
int sumifti=0,sumhabiba=0;
int midlessifti,midlesshahiba;
midlessifti=25-ifti[1];
midlesshahiba=25-habiba[1];
for(int i=0;i<5;i++){
sumifti=sumifti+ifti[i];
sumhabiba=sumhabiba+habiba[i];

}
printf("Ifti total=%d\n",sumifti);
printf("Habiba total=%d\n",sumhabiba);
printf("Ifti mid lossing mark=%d\n",midlessifti);
printf("Habiba mid lossing mark=%d\n",midlesshahiba);

return 0;
}