-
How do you write algorithm in c-program?
Here is a simple program that will tell you how to make an algorithm: int main(); { int length; int width; int total; printf("What is the width: "); scanf("%d", &width); printf("What is the...
-
C program for reversing a string?
include <stdio.h> #include <string.h> int main() { char a[20],arev[20]; int i,len; printf("Enter a string: "); scanf("%s",a); len=strlen(a); for(i=0;i<len;i++) { arev[len-1-i]=a[i]; }...
-
How to write algorithm in c program?
It is very easy to write the program for seeing the algorithm. Most of the problems that we are write with seeing the algorithm only.Algorithm is very easy to write the any source code seeing this is...
-
Write a program in C to concatenante 2 strings?
Here is very small application written in C, that concatenates strings.
include <stdio.h> #include <string.h> int main() { char str[100]; strcpy(str, "Hello "); strcat(str, "World!");...
-
Write c program to enter a string it has to display with space?
include <iostream>
include <string>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::getline;
int main()
{
string myStr = "";
cout << endl...