Forgive all who have offended you, not for them, but for yourself.
Harriet Nelson
Copyright 2006-2009 tessware.com. All Rights Reserved.
Programs using For..Loop
- Write a program to display your name 10 times.
- Write a program to display the numbers 1 to 10.
- Write a program to print the numbers form 10 to 1.
- Write a program to print the sum of digits of a number.(Using for- loop)
- Write a program to print the multiple table of a number.(Using for- loop)
- Write a program to print the sun of even and odd numbers.(Using for- loop)
- Write a program to print the Fibonacci series like 0,1,1,2,3,5,8,….
- Write a program to check whether the given number is prime or not.
- Write a program to generate the divisors of given number.
- Write a program to print the series as below.(Using for-loop)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Programs using While..Loop
- Write a program to calculate factorial of an integer.(Using while loop)
- Write a program to print the sum of even and odd of 'n' natural numbers.
- Write a program to count the number of characters are entered.
Programs using Do....While Loop
- Write a program to display a menu regarding rectangle operation and perform according to user's response.
- Write a program to find Whether a given number is odd or even or prime.
Programs using Array
- Write a program to find the sum of three numbers using array.
- Write a program to enter 5 numbers in an array.
- Write a program to enter 5 numbers in an array and display the numbers.
- Write a program to find the greatest of ten numbers.(Using One-dimensional array)
- Write a program to find the smallest of ten numbers. .(Using One-dimensional array)
- Write a program to read age of 5 students and print it reverse order.
- Write a program to input some natural numbers and find the sum, Average and smallest.
- Write a program to input a matrix and give output.
- Write a program to add two matrices.(Using Two-dimensional array)
- Write a program to subtract two matrices. (Using Two-dimensional array)
- Write a program to multiply two matrices.(Using Two-dimensional array)
Programs using String
- Program to read a string and print its length.
- Program to reverse all the strings stored in an array.
- Program to check whether a string is palindrome or not
- Program to replace every space in a string with a hyphen.
- Program to find number of vowels in a given line of text.
- Program to read a string and print how many words are stored in the string.
- Program to count number of characters entered.
- Program to find whether two string contain equal number of characters.
- Write a program to change the case of a string.
- Write a program to input a string and a character and print whether the character is contained in the same string.
- Write a program to input a string and display how many other character are entered.
Programs using Structure
- Write a program to find sum of two numbers using structure.
- Write program to find net salary from basic aywithDA, TA, HRA.2%, 3%, 4%. Using structure.
- Write program to enter the mark of five students of three different subjects using structure.
- Write program to find the total mark and percentage of five students using structure.
- Write program to read values into a nested structure.
- Write program to enter bank account of person and deposit or withdrew by users choice and show remaining balance.