|
Written by Administrator
|
|
Friday, 11 May 2007 |
|
Exercise 1 : There are two fields known as a and b. a contains 3 and b contains 7. Write on a paper a programme that exchanges the content of a in b. Expected result a=7 and b=3. Exercise 2 : Write a programme that adds two integers and displays the result on the screen. Exercise 3 : Write a programme that receives 5 numbers as input. Display the sum and the average of these five numbers. Exercise 4 : Write a programme that would return true if a given number (as an input) is found in the following array. Hint : an array has a known dimension; can be searched using the index of each cell int vector[] = {33, 4, -1, 67, 23, 5, 29, 45, 102} ; |
|
Last Updated ( Friday, 01 June 2007 )
|
|
|
Written by Administrator
|
|
Wednesday, 02 May 2007 |
ArraysWhat is an array? How to create? How to assign values? How to display all the elements? |
|
Last Updated ( Friday, 04 May 2007 )
|
|
Read more...
|
|
|
Written by Administrator
|
|
Monday, 30 April 2007 |
The different basic data types |
|
Last Updated ( Tuesday, 01 May 2007 )
|
|
Read more...
|
|
|
|
<< Start < Prev 1 2 Next > End >>
|
| Results 1 - 4 of 6 |