MAXMIN - " scanf"%f"&no sum =no...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include<stdio.h> #include<conio.h> # void main (void) { float no,no1,max,min,avg,sum,a; sum=0; clrscr(); printf("Enter the no: "); scanf("%f",&no1); max=no1; min=no1; for(a=1;a<=9;a++) { printf("Enter the no:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "); scanf("%f",&no); sum+=no; if(no>max) max=no; if(no<min) min=no; m } avg=sum/10.0; printf("MAX=%f MIN=%f SUM=%f AVG=%f",max,min,sum,avg); getch(); }...
View Full Document

This note was uploaded on 11/06/2010 for the course UBIT 411 taught by Professor Saleemelahi during the Spring '10 term at University of Karachi.

Ask a homework question - tutors are online