C Program to find largest element of an Array
#include <stdio.h> largest_element(int arr[], int num) { int i, max_element; max_element = arr[0]; for (i = 1; i < num;
Read more#include <stdio.h> largest_element(int arr[], int num) { int i, max_element; max_element = arr[0]; for (i = 1; i < num;
Read more#include <stdio.h> int main() { char str[100],i; printf(“Enter a string: \n”); scanf(“%s”,str); for(i=0; str[i]!=’\0′; ++i); printf(“\nLength of input string: %d”,i);
Read more#include <stdio.h> int main() { int n, count, sum = 0; printf(“Enter the value of n(positive integer): “); scanf(“%d”,&n); for(count=1;
Read moreThe string is a run-length encoding of the map of India. Alternating characters in the string stores how many times
Read moreProblem Statement: The distance between two cities (in km.) is input through the keyboard. Write a C program to convert
Read more