### Write a function, which accepts a character and integer n as parameter and displays the next…

Write a function, which accepts a character and integer n as parameter and displays the next n characters.

About 137 results (0.0006 seconds)

Write a function, which accepts a character and integer n as parameter and displays the next n characters.

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.

Display all perfect numbers below 500. Example: 6 (1 + 2 + 3), 28 (1+2+4+7+14) */

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.

Accept x and y coordinates of two points and write a menu driven program to perform the following operations till the user selects Exit. i. Distance between points ii. Slope of line between the points. iii. Check whether they lie in the same quadrant. iv. EXIT

Write a function to sort an array of n integers using Bubble sort method. Accept n numbers from the user, store them in an array and sort them using this function. Display the sorted array.

Write a menu driven program to perform the following operations on a square matrix. Write separate functions for each option. i) Check if the matrix is symmetric. ii) Display the trace of the matrix (sum of diagonal elements). iii) Check if the matrix is an upper triangular matrix. iv) Check if the matrix is a lower triangular matrix. v) Check if it is an identity matrix.

Write a program to accept a decimal number and convert it to binary, octal and hexadecimal. Write separate functions.

Write a program to find the union and intersection of the two sets of integers.*/

Write a function for Linear Search, which accepts an array of n elements and a key as parameters and returns the position of key in the array and -1 if the key is not found. Accept n numbers from the user, store them in an array. Accept the key to be searched and search it using this function. Display appropriate messages.