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;
}
|