Write a function in the program to return 1 if number is prime otherwise return 0

Write a function in the program to return 1 if number is prime otherwise return 0A prime number is natural number greater than 1 that has no positive...
October 05, 2021

Write a program that defines a function to add first n numbers

Sum of first N natural numbers in CAs we know natural numbers contain all the positive numbers starting from 1, 2, 3, to n numbers or infinity. For...
September 18, 2021

Write a program to convert string into upper case

Write a program to convert string into upper caseHere is the program to convert a string to uppercase in C language,In the program, the actual code of conversion...
September 11, 2021

Write a program to reverse string

Reverse a String in CThis topic will discuss several ways to reverse a string in the C programming language. Reversing a string is the technique that reverses or changes the...
September 10, 2021

Write a program to sort given array in ascending order

Write a program to sort given array in ascending order ( Use insertion sort, Bubble sort, Selection sort, Merge sort, Quickshort, Heapsort)Insertion Sort Algorithm:Insertion sort is a simple...
September 09, 2021