🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: att.lang.c++
Article #110

Re: New CSCI Student needing help!!

#110
From: Edwin Brozowski
Date: Sun, 29 Sep 2002 18:35
25 lines
1814 bytes
Out-classed by a High Schooler!!!!
This is in prestandard C++, but you get the idea on how to do it.  This
works! I have compiled and executed it my self in Microsoft Visual Studio!
#include <iostream.h>
int main()

{
int a;
int counter=0;
int b;
int total=0;
cout<<"This program will multiply two integers(This number can be
negative!):"<<endl;
cout<<"Please enter first number:"<<endl;
cin>>a;
cout<<"Please enter second number(This number cannot be negative!):"<<endl;
cin>>b;
do
{
 total=total+a;
 counter++;
}while(counter<b);
cout<<total<<endl;
return 0;
}
Technical Details
Message-ID: <LvHl9.19403$IO5.3374353@e3500-atl1.usenetserver.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsswitch.lcs.mit.edu!snoopy.risq.qc.ca!ps01-chi1!newsfeeds-atl2!news.webusenet.com!pc01.webusenet.com!e3500-atl1.usenetserver.com.POSTED!not-for-mail
References: <EnGl9.19402$q42.1001817@bin3.nnrp.aus1.giganews.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,d133c4fb76037b3e
X-Google-Attributes: gid109fba,public
X-Google-Thread: 10d4ba,d133c4fb76037b3e
X-Google-Attributes: gid10d4ba,public
X-Google-ArrivalTime: 2002-09-29 11:35:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsswitch.lcs.mit.edu!snoopy.risq.qc.ca!ps01-chi1!newsfeeds-atl2!news.webusenet.com!pc01.webusenet.com!e3500-atl1.usenetserver.com.POSTED!not-for-mail
From: "Edwin Brozowski" <johnlbro@bellsouth.net>
Newsgroups: att.lang.c++,comp.lang.c++
References: <EnGl9.19402$q42.1001817@bin3.nnrp.aus1.giganews.com>
Subject: Re: New CSCI Student needing help!!
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <LvHl9.19403$IO5.3374353@e3500-atl1.usenetserver.com>
X-Complaints-To: abuse@usenetserver.com
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly.
NNTP-Posting-Date: Sun, 29 Sep 2002 14:20:27 EDT
Organization: WEBUSENET.com
Date: Sun, 29 Sep 2002 14:35:00 -0400