|
|
|
|
|
| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 18 Feb 2008 13:20:00 IST
|
|
|
#include<iostream.h> #include<conio.h> void main() { int sales[10]; long total=0,avg=0; clrscr(); cout<<"Enter the sales for ten days"; for(int i=0;i<10;i++) { cin>>sales[i]; total=total+sales[i]; avg=total/10; } cout<<total<<"\t"<<avg; getch(); }
|
Be not afraid of growing slowly.
Be afraid only of standing still.
|
this reply: 5 points
(with 1 
in 1 votes ) [?]
|
|
You have to be logged on to rate
|
|
|
|
|
|
|
|
|
|