Professional Documents
Culture Documents
1. Write a program to print first 10 natural numbers using while loop, for loop and
do while loop.
2. Write a program to calculate the sum of first 10 natural number using while
loop, for loop do while loop.
11.Write a program to accept a number as integer and print the number of digits in
that number.
12. Write a program to print all the numbers between 1 and 100 that are divisible
by 2 as well as 3.
13.Write a program to print the sum of all the odd numbers from 1 and 100.
14.Write a program to find sum of n numbers using arrays assume that array
contain max 20 elements.
17. N numbers of elements are entered from the keyboard into an array. The
number to be searched is entered through the keyboard by the user. Write a
program to find if the number to be searched is present in the array.
18.N numbers are entered from the keyboard into an array. Write a program to find
out how many of them are positive, how many are negative, how many are even
and how many odd using malloc function
19. Write a program to read and display a 2 Dimensional array of 3*3 size.
24. Write a program to calculate the length of a string without using any inbuilt
function.
25. Write a program to print reverse of a string without using any inbuilt function.
31. Write a program to convert all the lower characters of a string to upper case
without using any inbuilt function.
31. Write a program to convert all the upper characters of a string to lower case
without using any inbuilt function.
33. Write a program to search a particular character from a string using linear
search.
34. Write a program to implement void pointer.
35. Write a program to implement call by value and call by address concept.
39 All the programs given in the note book and related programs should be
covered.