Preview:
  #include <stdio.h>

int main() {
    int std,marks,count=1;
    int sum=0;
    while(count<=10){
        printf("enter marks  :");
        scanf("%d",&marks);
      
      sum=sum+marks;
      count++;
    }
   int avg=sum/10;
    printf("average is : %d",avg);
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter