Click here to Skip to main content
15,904,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to control the size of MessageBox Pin
Software200711-Sep-09 6:02
Software200711-Sep-09 6:02 
AnswerRe: How to control the size of MessageBox Pin
David Crow11-Sep-09 6:03
David Crow11-Sep-09 6:03 
GeneralRe: How to control the size of MessageBox Pin
Software200711-Sep-09 6:06
Software200711-Sep-09 6:06 
AnswerRe: How to control the size of MessageBox Pin
Richard MacCutchan11-Sep-09 4:23
mveRichard MacCutchan11-Sep-09 4:23 
AnswerRe: How to control the size of MessageBox Pin
Joe Woodbury11-Sep-09 6:10
professionalJoe Woodbury11-Sep-09 6:10 
GeneralRe: How to control the size of MessageBox Pin
Software200711-Sep-09 6:12
Software200711-Sep-09 6:12 
GeneralRe: How to control the size of MessageBox Pin
Joe Woodbury11-Sep-09 6:20
professionalJoe Woodbury11-Sep-09 6:20 
Questiondraw Panel Image to another Panel window Pin
raj157611-Sep-09 2:01
raj157611-Sep-09 2:01 
QuestionMySql DESCRIBE Pin
rdop11-Sep-09 1:40
rdop11-Sep-09 1:40 
Questionalternaive for Setpixel and GetPixel Pin
Game-point11-Sep-09 1:36
Game-point11-Sep-09 1:36 
AnswerRe: alternaive for Setpixel and GetPixel Pin
Richard MacCutchan11-Sep-09 1:42
mveRichard MacCutchan11-Sep-09 1:42 
GeneralRe: alternaive for Setpixel and GetPixel Pin
Game-point11-Sep-09 1:58
Game-point11-Sep-09 1:58 
QuestionRe: alternaive for Setpixel and GetPixel Pin
Maximilien11-Sep-09 2:34
Maximilien11-Sep-09 2:34 
GeneralRe: alternaive for Setpixel and GetPixel Pin
Adam Roderick J11-Sep-09 2:41
Adam Roderick J11-Sep-09 2:41 
AnswerRe: alternaive for Setpixel and GetPixel Pin
kilt14-Sep-09 2:22
kilt14-Sep-09 2:22 
QuestionBeginner's Question [modified] Pin
UKM_Student11-Sep-09 1:10
UKM_Student11-Sep-09 1:10 
AnswerRe: Beginner's Question Pin
Mattias G11-Sep-09 1:13
Mattias G11-Sep-09 1:13 
AnswerRe: Beginner's Question Pin
Richard MacCutchan11-Sep-09 1:32
mveRichard MacCutchan11-Sep-09 1:32 
GeneralRe: Beginner's Question [modified] Pin
UKM_Student11-Sep-09 2:00
UKM_Student11-Sep-09 2:00 
Ok this is what i have tried so far since 2.5 hours ago...and failed >.<


#include<iostream>
using namespace std;
int main()
{

cout<<"c. The total sum of even integers between "<<firstNum<<" and "<<secondNum<<" is : ";
int total=0;
if(firstNum%2==0)
do
{
total=total+firstNum+2;
cout<<total;
firstNum=firstNum+2;
}while(firstNum<secondNum);


PS i chose the if(firstNum%2==0) to show that if the 1st value is an even number,that loop is to be executed.For The part where the first integer is an odd number,i should be able to write that program after you guys can help me solve the even number part Big Grin | :-D

modified on Friday, September 11, 2009 8:08 AM

GeneralRe: Beginner's Question Pin
Adam Roderick J11-Sep-09 2:32
Adam Roderick J11-Sep-09 2:32 
QuestionRe: Beginner's Question Pin
CPallini11-Sep-09 2:09
mveCPallini11-Sep-09 2:09 
AnswerRe: Beginner's Question Pin
UKM_Student11-Sep-09 2:12
UKM_Student11-Sep-09 2:12 
GeneralRe: Beginner's Question Pin
CPallini11-Sep-09 2:32
mveCPallini11-Sep-09 2:32 
GeneralRe: Beginner's Question Pin
UKM_Student11-Sep-09 2:41
UKM_Student11-Sep-09 2:41 
GeneralRe: Beginner's Question Pin
CPallini11-Sep-09 2:51
mveCPallini11-Sep-09 2:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.