- Use steps of making template program as in for step to five , but using Project_Name which differing, for example SecondProgram
- Change block program function play with following:int integer1; /* first number to be input by user */
int integer2; /* second number to be input by user */
int sum; /* variable in which sum will be stored */
printf( "Enter first integer\n" ); /* prompt */
scanf( "%d", &integer1 ); /* read an integer */
printf( "Enter second integer\n" ); /* prompt */
scanf( "%d", &integer2 ); /* read an integer */
sum = integer1 + integer2; /* assign total to sum */
printf( "Sum is %d\n", sum ); /* print sum */
return 0; /* indicate that program ended successfully */ - Do step 6 and 7 template of such as program I.
Thursday, July 17, 2008
Reading the two integer and present its quantifying result
Guide:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment