Vous êtes sur la page 1sur 4

C / C++ PROGRAMS

Write a program in C# to accept principal, rate of interest and time in years and calculate simple interest. Write a program in C# to find the area of a circle. Write a program in C# to find the perimeter of a rectangle. Write a program in C# to design a course structure providing all the information about different courses in a computer institute. Write a program in C# to find the square and cube of a number. Write a program in C# to find the square root of a number. Write a program in C# to accept a temperature in Celsius and convert it into Fahrenheit. Write a program in C# to accept an amount and convert that into paisa. Write a program in C# to accept the basic salary of a person and find the gross salary where TA=10%, DA=25%, HRA=8% and GPF=10%. Write a program in C# to accept the 3 sides of a triangle and find its area. Write a program in C# to interchange two numbers without using thnird variable. Write a program in C# to accept the total selling price of 15 items and the profit earned on them. Find out the cost price of each item. Write a program in C# to find the volume of a sphere. Write a program in C# to find the grade of a person according to his marks. Write a program in C# to find a number whether even or odd. An electric power company charges its domestic consumers as follows.

Consumption Rate of Charge 0 200 Rs 0.50/Unit 201 400 Rs 100 + Rs 0.65/Unit 401 601 Rs 230 + Rs 0.80/Unit 601 Above Rs 390 + Rs 1.00/Unit Find the electric bill of a person. Write a program in C# to print 1 to 100. Write a program in C# to add the odd numbers from 1 to 20. Write a program in C# to find + 1/3 + + + 1/10 Write a program in C# to find (1 + ) + (2 + 1/3) + (3 + ) + + (10 + 1/11) Write a program in C# to show multiplication table. Write a program in C# to find the factorial of a number. Write a program in C# to check a number whether prime or not. Write a program in C# to show 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Write a program in C# to show * * * * * * * * * * * * * * * Write a program in C# to show 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 Write a program in C# to display the Fibonacci series. 0112358

Write a program in C# to show C CP CPR CPRO CPROG CPROGR CPROGRA CPROGRAM CPROGRAMM CPROGRAMMI CPROGRAMMIN CPROGRAMMING Write a program in C# to design a calculator such that : Press 1 : Addition 2 : Subtraction 3 : Multiplication 4 : Division Continue this program until you press N. Write a program in C# to accept 10 numbers in an array and display the numbers. Write a program in C# to search a particular digit in a given number and find how many times the digit is repeated in the number. Write a program in C# using function to display the following result. 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 Write a program in C# to find the sum of the elements in an 1D array of size of 7 and find the middle element of the array. Write a program in C# to find whether a number is prime or composite.

Write a program in C# to find the number of digits in a number. Write a program in C# ! + 2/3! + ! ++ n/(n+1)! Write a program in C# to find the grade of a student if mark >= 60 A, mark >= 45 B, mark >=30 C & mark< 30 Fail. Write a program in C# to enter choice between a to l and display the name of the month accordingly, e.g. aJanuary Write a program in C# to show 12 + 22 + 32 + + n2 Write a program in C# to show 1/1! + 2/2! + 3/3! + + n/n! Write a program in C# to add two one dimensional arrays. Write a program in C# to add two 2-D arrays. Write a program in C# to subtract two 1-D arrays. Write a program in C# to subtract two 2-D arrays. Write a program in C# to multiply twp 1-D arrays. Write a program in C# to multiply two 2-D arrays. Write a program in C# to write a string and count the number of characters in it. Write a program in C# to check a number whether it is palindrome or not. Write a program in C# to check a number whether it is Armstrong or not. Write a program in C# to reverse a number. Write a program in C# to swap two numbers. Write a program in C# to reverse an entered string.

Vous aimerez peut-être aussi