0% found this document useful (0 votes)
2 views

Lab Report 5 C programming

The document is a lab report for C programming that outlines tasks involving looping and array programming. It includes 20 programming exercises, each requiring code, input/output, and flowcharts for the first 10 programs. The tasks range from printing numbers and calculating sums to manipulating arrays and strings.

Uploaded by

Nirvik K.C.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Lab Report 5 C programming

The document is a lab report for C programming that outlines tasks involving looping and array programming. It includes 20 programming exercises, each requiring code, input/output, and flowcharts for the first 10 programs. The tasks range from printing numbers and calculating sums to manipulating arrays and strings.

Uploaded by

Nirvik K.C.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab Report 5

C programming

Write the program code and input/output for each of the program given below
Note: For Program no 1 to 10, Please make the flowchart also.

Looping:

1. To print the numbers from 1 to 10


2. To print the numbers from 100 to 1
3. To print the sum of numbers from 1 to 10
4. To print the sum of numbers from 1 to N
5. To print the multiplication table of an input number
6. To input a number and print the factors of the number
7. To input a number and print the factorial of the number
8. To input a number and print the sum of the digits of the number
9. To input a number and print the reverse of the number
10. To input a number and print whether the number is palindrome or not

Array programming :

11. To print 10 different input number in an array


12. To print the sum and average of 10 input numbers in array
13. To print the sum of odd and even numbers
14. To count the number of odd and even numbers
15. To print the smallest and greatest number among 10 input numbers
16. To input 10 different numbers and arrange them in ascending order
17. To input 10 different strings and arrange them in descending order
18. To print the array of 3X4
19. To print the sum of a[5] and b[5] in c[5]
20. To print the sum of a[3][4] and b[3][4] in c[3][4]

_________________________ ________________
Student Signature: Faculty signature

You might also like