newbie help.
From: lightning_b0lt (lightning1974(removeme)_at_hotmail.com)
Date: 11/25/03
- Next message: Richard Bos: "Re: about BigEndian and LittleEndian"
- Previous message: Irrwahn Grausewitz: "Re: about BigEndian and LittleEndian"
- Next in thread: Don Kim: "Re: newbie help."
- Reply: Don Kim: "Re: newbie help."
- Reply: André Pönitz: "Re: newbie help."
- Reply: Chris \( Val \): "Re: newbie help."
- Reply: lightning_b0lt: "Re: newbie help."
- Reply: Willy: "Re: newbie help."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 25 Nov 2003 12:58:02 +0000 (UTC)
ive only just started learning C++ ..
and was trying to sort out a little problem.
basically i need help in making this program loop 5 times each time
calculating the added increase.
i dont want it written for me ,,,just some guidance on what im doing or not
doing right !!!
thank you for you pateince.
#include <iostream.h>
#include <iomanip.h>
#include <math.h>
int main()
{ float salary,annual,increase;
cout <<"\n\nEnter your annual salary:\n\n";
cin >>salary;
cout <<"\n\nEnter your annual increase:\n\n";
cin >>annual;
if(salary,annual<0)
cout <<"\n\nNegative values are not allowed\n\n";
else
increase = salary + annual;
cout <<"\n You salary is "<<increase<<endl;
return 0;
}
- Next message: Richard Bos: "Re: about BigEndian and LittleEndian"
- Previous message: Irrwahn Grausewitz: "Re: about BigEndian and LittleEndian"
- Next in thread: Don Kim: "Re: newbie help."
- Reply: Don Kim: "Re: newbie help."
- Reply: André Pönitz: "Re: newbie help."
- Reply: Chris \( Val \): "Re: newbie help."
- Reply: lightning_b0lt: "Re: newbie help."
- Reply: Willy: "Re: newbie help."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|