Beruflich Dokumente
Kultur Dokumente
\
nNumber of words = <<n
;}
OUTPUT
Enter line: My name is Alok Kumar.Number of words = 5Enter line: Program to find out number
of words present in a line.Number of words = 11
43. Program to print a word by deleting 1 letter fromend in each turn.
#include<iostream.h>#include<string.h>void main()
{ char str[25];cout<<"Enter string:";cin.getline(str,25);int len=strlen(str);for(int i=len; i<=0; i-){ for(int j=0; j<=i; j++)cout<<str[j];
cout<<
\
n;
}}
OUTPUT
Enter string: HELLOHELLOHELLHELHEH
44. Program to check whether the given string is
palindrome
or not.
#include<iostream.h>#include<string.h>void main(){ char str[20];
Activity (3)
FILTERS
Add to collectionReviewAdd NoteLike
1 thousand reads
1 hundred reads
C++ Programs
RAGHUNATH2U
C++ Assignment
PREMENDRA YADAW
cpp_record
API-3870545
C++
VIKAS SAXENA
Practical
NUPUR BHUTANI
dff
c++ Programs
SUGANDH GUPTA
c++
SAKSHI SINGH
c++
PRADEEP NAIK
c++ Practical
SUNIL TRIVEDI
c Constants
SHIVANSH KUMAR KULPEHRA
c++
AMIT VERMA
C++
MARCELO ANJOS
C++
c++
HARSH BHAGAT
C++ Programs
DNIMISH
C+ Programming__0750657383
API-19755110
Practicals
DHVANI5988
C++ Practices
PRATEEK SINGHAL
SQL
ALOKKUMAR012345