Program to check whether the number is string or not | C++ Programming

C++ is one of the most popular programming languages. It is based on C but is an object-oriented programming language. It is widely used in graphics libraries, games, network devices, etc. C++ is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation.
Program to check whether the number is string or not
//Program to check whether the number is string or not
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
void main()
{clrscr();
char string[10];
int i;
cout<<"\n enter the string:";
 gets(string);
 for(i=0;string[i]!='\0';i++)
 {if(string[i]>=65 && string[i]<=92)
    string[i]=string[i]+32;
  string[i]=string[i];
  }
  cout<<"\n the converted string is:"<<string;
    getch();
   }
Program to check whether the number is string or not | C++ Programming Program to check whether the number is string or not | C++ Programming Reviewed by SHERE KHOJRAHA on February 13, 2019 Rating: 5

No comments:

Powered by Blogger.