C program to find the length of a String without using function strlen()

#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

Write a C program to calculate the distance between two cities

Problem Statement: The distance between two cities (in km.) is input through the keyboard. Write a C program to convert

Read more