# include <stdio.h>
int main() {
int a[7],z[7];
int x,y,j,d=0,i=0;
for( i=0;i<7;i++)
{
scanf("%d",&a[i]);
if(a[i]%2!=0)
{
x+=a[i];
z[i]=a[i];
d++;
}
}
for(i=0;i<d-1;i++){
{
for(j=i+1;j<d;j++)
{
if(z[i]>z[j])
{
y=z[i];
z[i]=z[j];
z[j]=y;
}
}
}
}
printf("%d\n",x);
printf("%d",a[i]);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: