codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  C+ help getting 2 errors  pochacco at 23:05 on Wednesday, December 03, 2008
 

#include <iostream>
using namespace std;

int main()
{
double num_one, num_two, num_three, num_four, num_five, num_six, num_seven, num_eight, sum, product, average;
char ans;



cout << "Please enter eight numbers: "<< end;
cin >> num_one >> num_two >> num_three >> num_four>> num_five >> num_six >> num_seven >> num_eight;


cout << "The sum of the numbers is: " << endl;
sum =num_one + num_two + num_three + num_four + num_five+ num_six + num_seven + num_eight;
cout << sum << end1;

cout << "The product of the numbers is: " << endl;
product = num_one * num_two * num_three * num_four * num_five * num_six * num_seven * num_eight;
cout << product << endl;

cout << "The average of the numbers is: " << endl;
average = (num_one + num_two + num_three + num_four + num_five + num_six + num_seven + num_eight)/8;
cout << average << end1;

return 0
}


  Re: C+ help getting 2 errors  maham.soma at 08:02 on Thursday, December 04, 2008
 




cout << average << end1;

Replace end1 to endl and also in the first line of cout you write just end so replace it with endl


  Re: C+ help getting 2 errors  maham.soma at 08:02 on Thursday, December 04, 2008
 




cout << average << end1;

Replace end1 to endl and also in the first line of cout you write just end so replace it with endl


  Re: C+ help getting 2 errors  maham.soma at 08:02 on Thursday, December 04, 2008
 




cout << average << end1;

Replace end1 to endl and also in the first line of cout you write just end so replace it with endl


  Re: C+ help getting 2 errors  maham.soma at 08:02 on Thursday, December 04, 2008
 




cout << average << end1;

Replace end1 to endl and also in the first line of cout you write just end so replace it with endl


  Re: C+ help getting 2 errors  maham.soma at 08:03 on Thursday, December 04, 2008
 



cout << average << end1;

Replace end1 to endl








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Javascript cookie redirect
•  Re: C+ help getting 2 errors
•  Conversion from mpeg2 to wmv format (video chunks)
•  perl script to access a paricular structure using its pid
•  Re: Problem 1 - Email ids conversion code
•  Very slow inserts using SqlCommand.ExecuteNonQuery()
•  Re: vector
•  combined 3 functions that do the same thing
•  Re: Finding data in hash


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008