#include <stdio.h>

int main() {
    int a;
    int b, c;
    double z;
    
    while(1){
        scanf("%d",&a);    
        if(a >= 100)
            b += a;
            c++;
            break;
}
    z = (double)b / c;
        
    printf("%d\n %.1f", a, z);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: