Showing posts with the label cShow all
C Program - Write a program to accept an mXn matrix and display an m+1 X n+1 matrix such that the m+1th row contains the sum of all elements of corresponding row and the n+1th column contains the sum of elements of the corresponding column
C Program - Write a menu driven program to perform the following operations on a square matrix. Write separate functions for each option
C Program - Write a program to add and multiply two matrices. Write separate functions to accept, display, add and multiply the matrices. Perform necessary checks before adding and multiplying the matrices
C Program - Write a program to accept a matrix A of size mXn and store its transpose in matrix B. Display matrix B. Write separate functions
C Program - Write a program to accept n number and display the array in the reverse order. write separate function to accept and display
C Program - Write a recursive C function to print the digits of a number in reverse order. Use this function in main to accept a number and print the digits in reverse order separated by tab
C Program -  Write a recursive function to calculate the nth Fibonacci number. Use this function in main to display the first n Fibonacci numbers. The recursive definition of nth Fibonacci number is as follows
C Program - Write a recursive C function to calculate x^y  (Do not use standard library function)
C Program - Write a recursive C function to calculate the GCD of two numbers. Use this function in main. The GCD is calculated as
C Program - Write a recursive C function to calculate the sum of digits of a number. Use this function in main to accept a number and print sum of its digits
C Program - Write a function power, which calculates x^y . Write another function, which calculates n! Using for loop. Use these functions to calculate the sum of first n terms of the Taylor series
C Program - Write a function that accepts a character as parameter and returns 1 if it is an alphabet, 2 if it is a digit and 3 if it is a special symbol. In main, accept characters till the user enters EOF and use the function to count the total number of alphabets, digits and special symbols entered
C Program - Write a function isPrime, which accepts an integer as parameter and returns 1 if the number is prime and 0 otherwise. Use this function in main to display the first 10 prime numbers
C Program - Write a function, which accepts a character and integer n as parameter and displays the next n characters
C Program - Write a function isEven, which accepts an integer as parameter and returns 1 if the number is even, and 0 otherwise. Use this function in main to accept n numbers and check if they are even or odd
C Program - Accept x and y coordinates of two points and write a menu driven program to perform the following operations till the user selects Exit
C Program - Accept two complex numbers from the user (real part, imaginary part). Write a menu driven program to perform the following operations till the user selects Exit.
C Program - Accept two fraction numbers from the user ( numerator, denominator ). Write a menu driven program to perform the following operations till the user selects Exit.
C program - Write a menu driven program to perform the following operations till the user selects Exit. Accept appropriate data for each option. Use standard library functions from math.h
C Program - Write a program, which accepts a character from the user and checks if it is an alphabet, digit or punctuation symbol. If it is an alphabet, check if it is uppercase or lowercase and then change the case.