Sunidhi Bansal has Published 1078 Articles

C Program to check if the points are parallel to X axis or Y axis

Sunidhi Bansal

Sunidhi Bansal

Updated on 21-Oct-2019 11:24:32

543 Views

Given n number of points we have to check that whether the point is parallel to x-axis or y-axis or no axis according to a graph. A graph is a figure which is used to show a relationship between two variables each measured along with axis at right angles. Parallel ... Read More

C Program to check if two strings are same or not

Sunidhi Bansal

Sunidhi Bansal

Updated on 21-Oct-2019 11:18:33

10K+ Views

Given two strings str1 and str2 we have to check whether the two strings are same or not. Like we are given two stings “hello” and “hello” so they are identical and same.Identical are the strings which seems equal but are not equal like : “Hello” and “hello”, and same ... Read More

C Program for replacing one digit with other

Sunidhi Bansal

Sunidhi Bansal

Updated on 21-Oct-2019 11:14:31

4K+ Views

Given a number n, we have to replace a digit x from that number with another given number m. we have to look for the number whether the number is present in the given number or not, if it is present in the given number then replace that particular number ... Read More

C Program for Reversed String Pattern

Sunidhi Bansal

Sunidhi Bansal

Updated on 21-Oct-2019 11:09:27

808 Views

Given a string str, our task is to print its reversed pattern. The Pattern will be incremental in reversed order, and when the string is completed fill ‘*’ in the remaining places.Like we enter a string “abcd”, now in first line we have to print “a” then in next line ... Read More

C Program to check if an Array is Palindrome or not

Sunidhi Bansal

Sunidhi Bansal

Updated on 21-Oct-2019 11:05:02

15K+ Views

Given an array arr[] of any size n, our task is to find out that the array is palindrome or not. Palindrome is a sequence which can be read backwards and forward as same, like: MADAM, NAMAN, etc.So to check an array is palindrome or not so we can traverse ... Read More

C Program to check Plus Perfect Number

Sunidhi Bansal

Sunidhi Bansal

Updated on 21-Oct-2019 10:56:13

344 Views

Given a number x with n number of digits, our task is to check whether the given number’s Plus Perfect number or not. In order to check that the number is Plus Perfect Number we find the nth power of every digit d (d^n) and then sum all the digits, ... Read More

C Program to convert first character uppercase in a sentence

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 14:22:35

4K+ Views

Given a string and with mixed case, i.e with both uppercase and lower case, the task is to covert the first character to uppercase rest in lowercase if it’s in upper case.Let’s understand it in depth with the help of a simple example.Like we are given a string “hElLo world”, ... Read More

C Program to check if a date is valid or not

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 14:06:27

4K+ Views

Given date in format date, month and year in integer. The task is to find whether the date is possible on not.Valid date should range from 1/1/1800 – 31/12/9999 the dates beyond these are invalid.These dates would not only contains range of year but also all the constraints related to ... Read More

C Program to check Strong Number

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 13:25:15

7K+ Views

Given a number ‘n’ we have to check whether the number given is Strong Number or not.Strong number is a number whose sum of all digits’ factorial is equal to the number ‘n’. Factorial implies when we find the product of all the numbers below that number including that number ... Read More

C Program to check if matrix is singular or not

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 13:15:52

1K+ Views

Given a matrix as mat[row][column], our task is to check whether the given matrix is singular or not through a function and display the result.Singular matrix is a matrix whose determinant is zero and if the determinant is not zero then the matrix is non-singular.So to find whether the matrix ... Read More

Advertisements