mindsurfer

10-11-2007, 11:06 PM

hi guys .... i am new to programming and this is my first C++ program... the only problem i have is that the size is large...almost 5MB... is there anything that can help me to reduce the size?

here is my source...

#include <iostream>

int main()

{

float number1,number2;

float sum,subtract,product,division;

std::cout <<"Enter the value of number1 :";

std::cin >>number1;

std::cout <<"Enter the value of number2 :";

std::cin >>number2;

sum=number1+number2;

subtract=number1-number2;

product=number1*number2;

division=number1/number2;

std::cout <<"sum is :"<<sum <<std::endl;

std::cout <<"subtract is :"<<subtract <<std::endl;

std::cout <<"product is :"<<product <<std::endl;

std::cout <<"division is :"<<division <<std::endl;

return 0;

}

any help will be appreciated:)

here is my source...

#include <iostream>

int main()

{

float number1,number2;

float sum,subtract,product,division;

std::cout <<"Enter the value of number1 :";

std::cin >>number1;

std::cout <<"Enter the value of number2 :";

std::cin >>number2;

sum=number1+number2;

subtract=number1-number2;

product=number1*number2;

division=number1/number2;

std::cout <<"sum is :"<<sum <<std::endl;

std::cout <<"subtract is :"<<subtract <<std::endl;

std::cout <<"product is :"<<product <<std::endl;

std::cout <<"division is :"<<division <<std::endl;

return 0;

}

any help will be appreciated:)