Faraz Arb2 c File
Faraz Arb2 c File
Faraz Arb2 c File
INDEX
2
1
Write a C program to print hello world.
2
Write a C program to print the ASCII value of a given character.
3
Write a C program to print the sum and average of three numbers.
4
Write a C program to find the sum of individual digits of a given positive integer.
5
Write a C program to generate prime numbers from 1 to n.
6
Write a C program to check whether a number is Armstrong or not.
7
Write a C program to perform arithmetic operations using switch statements.
8
Write a C program to find GCD of two numbers using non recursive functions.
9
Write a C program that uses functions to perform multiplication of two matrices.
10
Write a C program that uses a function to insert a sub string into a given main string from a given
position.
11
Write a C program using a user defined function to determine whether a function is palindrome or
not.
12
Write a C program to count the number of lines, words and characters in a given file.
13
Write a C program to calculate total and percentage marks of a student using structure.
14
Write a C program to print the first n terms of a Fibonacci Sequence.
15
Write a C program to demonstrate linear and binary search.
Output:-
Input Code
5
Output:-
Q3:- Write a C program to print the sum and average of three numbers
Input Code
Output
Q4:- Write a C program to find the sum of individual digits of a given positive integer.
Input code
6
Output :-
Output
Output:-
Output:
11
Output:
12
Output:
15
Output2:
16
Q10=>Write a C program that uses a function to insert a sub string into a given
main string from a given position.
17
18
Output:
19
Output:
Q12-> Write a C program to count the number of lines, words and characters in a
given file
22
23
24
Output:
Output:
27
Output:
Output:
Output:
Output: