Thursday, November 11, 2010

CP1

Gud am..pls compile the source code below:

#include

main()
{
num1, num2, ans;
clrscr();
printf("Enter First number: ");
scanf("%d",&num1);
printf("Enter Second number: ");
scanf("%d",&num2);

ans = num1 + num2;

printf("The sum of two number is %d",ans);

getch();
}

exer1.

Create a program that will get the quotient, difference and product of two inputed number, refer this to the sample code above:

Filename: Exer1



1 comment:

Hobert said...
This comment has been removed by the author.

Followers

Visitor

free counters

FEEDJIT Live Traffic Feed