ThinkTronix
learning is fun...
Home
Home
E-Books
Robotics
Coding
C++
Tutorials
Robotics
Softwares
Social Profiles
Popular
Tags
Blog Archives
Popular Posts
Volume of a Cube, Cuboid & Cylinder using Function Overloading
Write a Program to find Volume of a Cube, Cuboid & Cylinder using Function Overloading. #include<iostream> using namespace std...
Robotics: Using Atmega16 Microcontroller - Introduction
What is a Microcontroller? A microcontroller is a single chip, self-contained computer which incorporates all the basic components of...
NI Multisim 11.0
NI Multisim (formerly MultiSIM ) is an electronic schematic capture and simulation program which is part of a suite of circuit desi...
Area using Default Arguments
Write a Program to find Area of a Square & Rectangle using Default Arguments. #include<iostream> using namespace std; int sqr(...
Swap using Call by Address.
Write a Program to enter two no.s and swap their values using Call by Address. #include<iostream> using namespace std; void swap(i...
Tags
C++ code
electronics
free download
free ebooks
mediafire
programming
software
video
Blog Archive
▼
2012
(24)
▼
May
(1)
Robotics: Using Atmega16 Microcontroller - Introdu...
►
April
(3)
►
February
(6)
►
January
(14)
►
2011
(2)
►
December
(2)
Showing posts with label
palindrome
.
Show all posts
Showing posts with label
palindrome
.
Show all posts
Wednesday, January 25, 2012
Palindrome String
10:12 PM
C++ code
,
palindrome
No comments
Write a Program to input a String and check whether it is a Palindrome or not.
#include<iostream> using namespace std; int main() { char str[20],rev[20]; int i,j,k=0,flag=0; cout<<"Enter the string:"; cin>>str; for(i=0;str[i]!='\0';i++); for(j=i;j>0;j--) { rev[j-1]=str[k]; k++; } cout<<"The reverse="<<rev<<"\n"; for(j=0;str[j]!='\0';j++) if(str[j]!=rev[j]) { flag=1; break; } if(flag==0)cout<<"Palindrome\n"; else cout<<"Not Palindrome\n"; return 0; }
Read More
Palindrome Number
10:10 PM
C++ code
,
palindrome
No comments
Write a Program to input a number and check whether it is a Palindrome or not.
#include<iostream> using namespace std; int main() { int num,rev=0,rem=0,n; cout<<"Enter the number:"; cin>>num; n=num; while(n>0) { rem=n%10; rev=rev*10+rem; n/=10; } cout<<"The reverse of "<<num<<" = "<<rev<<"\n"; if(num==rev)cout<<num<<" is a palindrome\n"; else cout<<num<<" is not a palindrome\n"; return 0; }
Read More
Older Posts
Home