View Single Post
  #2  
Old 10-30-2006, 06:23 PM
TheRock69 TheRock69 is offline
Senior Member
 
Join Date: Dec 2005
Posts: 291
Default Re: C Programming Noob - Need Help Plz.

I can give it to you in c++. This is pretty basic programming you should really learn it.
#include <iostream>
using namespace std;

int main()
{
int num1;
double num2;
double sum;
double product;
cout << "Enter an int: ";
cin >> num1;
cout << "Enter a double (decimal): ";
cin >> num2;
product = num1 * num2;
sum = num1 + num2;
cout << "Sum of the nums is: " << sum << endl;
cout << "Product of the nums is: " << product << endl;
return 0;
}
Reply With Quote