October 28, 2018 -
C Programming,Klase Notes,Programming Notes
No comments
C Programming,Klase Notes,Programming Notes
No comments
Lesson 1: Basic C Programming Problem Sets
Program 1: Write a C program that calculates the sum of two input numbers, and
display the result.
Algorithm:
Solution:
Program 2: Write a C program that calculates the Area of a sphere using this formula:
A = πr2, value of π is 3.1416.
Algorithm:
Solution:
Program 3: Write a program that computes the average of three input quizzes, then
display the result.
Algorithm:
Solution:
Program 4: Write a program that will compute and display the sum and product of two numbers.
Algorithm:
Solution:
Program 5: Write a program that accepts and display person’s name and age.
Algorithm:
Solution:
0 comments:
Post a Comment
If possible, leave a positive comment. No hate speech or elicit comments. Thank you.