input3numberaddandaverageit - cout<<"the sum of...

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

View Full Document Right Arrow Icon
#include <iostream> using namespace std; void main() { int a,b,c,d,e=0; cout <<"Please input the number.\n"; cin >>a; cin >>b; cin >>c; d = a + b + c;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout<<"the sum of the a, b, c is "<<d<<"\n"; e = d / 3; cout<<"the average of the a, b, c is "<<e<<"\n"; } Output...
View Full Document

This note was uploaded on 07/27/2011 for the course COL 201 taught by Professor Magtibay during the Winter '10 term at De La Salle Lipa.

Ask a homework question - tutors are online