2. The first programming source
code will show how to compute for
the sum of the number entered by
the user by using the C language
programming.
http://eglobiotraining.com
4. The example for this
programming source Code is
the user enter number 5. So
the program will Start to
compute from 5 and adding
numbers 4, 3, 2 and 1. So the
output will be 15.
http://eglobiotraining.com
5. Here is the example output of the
programming source code.
http://eglobiotraining.com
6. The second programming
source code will show us an
output of a right triangle
depending what the user
entered in the program and the
number of asterisk is depends
also on the number that the
user entered.
http://eglobiotraining.com
8. For example the user entered
number 5 in the program. So
the programming output will
show 5 rows of asterisk
starting from 1 and ends with 5
asterisk on the fifth row.
http://eglobiotraining.com
9. Here is the example output of the programming source
code.
http://eglobiotraining.com
10. The 3rd programming source
code will determine if the
number that we enter is a
prime or not.
http://eglobiotraining.com
12. For example the user input the number 13. The
program will start executing if number 13 is prime or
not. The output of the programming source code is
that it is a prime.
http://eglobiotraining.com
13. The 4th programming source
code will show us the sum of
all numbers starting from 1 and
ending with 10.
http://eglobiotraining.com
15. If the user starts the programming
source code, the program will
automatically calculate the adding oll
the odd numbers from 1 to 10 and the
sum is 25.
http://eglobiotraining.com
16. The fifth programming source code
shows the sum of two integers
and after showing the output, the
programming source code also
indicates whether you would like
to try again or not.
http://eglobiotraining.com
18. For example for this programming source code:
The user inputed integers 13 and 12. So the program will
compute the sum of 13 and 12 and the programming
output is 25.
http://eglobiotraining.com
20. SUBMITTED TO: MR. ERWIN GLOBIO
SUBMITTED BY: FRANZ NERI CLEMEÑA
FM09205 W-S 10:30AM-12:00PM
Official Website is http://eglobiotraining.com/
http://eglobiotraining.com