Page MenuHomec4science

exercise01-2.cpp
No OneTemporary

File Metadata

Created
Sun, Jul 6, 07:28

exercise01-2.cpp

/*
* exercise-template.cpp <--- The name of the source file goes here
*
* <--- Description of the program goes here.
*
* Created on: September 02, 2015 <--- Fill in the date here
* Author: Davide Forti <davide.forti@epfl.ch> <--- Fill in your name (and e-mail) here
*/
/*
* Any headers you need to include should be specified on the next lines
*/
#include <iostream>
#include <cmath>
int main(int argc, char* argv[])
{
int a, b, s;
std::cout << "Enter first number \n";
std::cin >> a;
std::cout << "Enter second number \n";
std::cin >> b;
s = a*b;
std::cout << "The product of " << a;
std:: cout << " and " << b;
std::cout << " is " << s;
std::cout << " \n";
return 0;
}

Event Timeline