Saturday
July 4, 2015

Homework Help: Programming C++

Posted by Maryam on Tuesday, April 20, 2010 at 9:26am.

#include<stdio.h>
#include<conio.H>
{
clrscr();
int first_value;
int second_value;

long result;
print f("enter your first value:);
scanf("%d",&first_value);
printf("enter your second value:);
scanf("%d",&second_value:);
result=first_value+second_value;
printf("the sum of two values is %d",result);
}

PROBLEM:
Let first value = 1600 second value = 1700
these values comes under the integer data their sum i.e. 3300 can't be accumulated under inter data type so long data type is used for the third variable that is result.
but the output is faulty, their is no solid for this behaviour please tell me any reason you can propose.
reply as soon as possible as i need it urgently.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Members