Monday, March 28, 2011

Integer













#include<iostream.h>
main()
{
      //declare variable
      int multiply,num1,num2;
      //input1
      cout<<"Enter num1:";
      cin>>num1;
      //input2
      cout<<"Enter num2:";
      cin>>num2;
      //formula
      multiply=num1*num2;
      //output
      cout<<"Answer is:"<<multiply;
      return 0;
      }

No comments:

Post a Comment