#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int num,temp,rem,sum=0;
cout<<"Enter the number ";
cin>>num;
temp=num;
while(num>0)
{
rem=num%10;
num=num/10;
sum=(sum*10)+rem;
}
if(temp==sum)
cout<<"The number is palindrome"<<sum;
else
cout<<"The number is not palindrome";
cout<<endl;
...
Sunday, 23 November 2014
Saturday, 22 November 2014
Display the following output using C++ language.
Here is C++ Coding
----------------------------------------------------------------
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int sum,i,j,lim;
cout<<"ENTER THE LIMIT";
cin>>lim;
for(i=1; i<=lim; i++) //for loop execution
{
cout<<"1";
sum=1;
for(j=2; j<=i; j++) // again for loop execution
{
cout<<"+"<<j;
sum=sum+j;
...
Sunday, 16 November 2014
How to Calculate table in c puls plus programming complete code.

// saved name : Defines the entry point for the console application.
//
#include "stdafx.h"
#include<iostream>
using namespace std;
int main()
{
int table,lenght,c;
cout<<"Enter the table";
cin>>table;
cout<<"Enter the table lenght";
cin>>lenght;
for(c=1; c<=lenght; c++)
{
cout<<table<<"*"<<c<<"="<<table*c<<endl;
}
system("pause");
return 0;
}
-----------...
Thursday, 13 November 2014
Using for loop to calculate and print product of add integers from 1 to 15.newplusplus panels

#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int i,prod=1;
for ( i = 1; i <=15; i+=2)
{
prod = i * prod;
}
cout << " product: " << prod <<endl;
system("pause");
return 0;
}
-------------------------------------------------
out...
Calculate the Factorial of positive number in the range of 0 to 10.

#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int num,i,fact=1;
cout<<"Enter the number "<<endl;
cin>>num;
if ((num==1)||(num<=10))
{
for(i=num;i>1;i--)
{
fact*=i; //factorial formula
}
cout<< "factorial of " <<num<<"="<<fact<<endl;
}
else
cout<<"your enter number=...
Thursday, 30 October 2014
How to calculate the Discount on the Shirts| Display the shirts cost and Discount price|
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{ float shirts,rate=12,cost,total_price,disc;
cout<<"WELCOME TO THE HOME OF C PLUS PLUS"<<endl;
cout<<"How many shirts would you like:"<<endl;
cin>>shirts;
cost=rate*shirts;
cout<<"The cost of shirts are:"<<cost<<endl;
if(shirts>=5)
{
disc=(cost*10)/100;
cout<<"Discount:"<<disc<<endl;
total_price=cost-disc;
...
Wednesday, 24 September 2014
Swapping The values of X and Y in C-plusplus programming.
// bilal.cpp : Defines the entry point for the console application.
//www.newplusplus.blogspot.com
//compilar: visual studio 2008
//PROGRAMMER: BILAL KHAN
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int x;
int y;
cout<<" Enter the value of X : ";
cin>>x;
cout<<" Enter the value of Y: ";
cin>>y;
x = x + y;
y = x - y;
x = x - y;
cout<<" After Swapping the value of X is : "<<x<<endl;
cout<<"...
Tuesday, 23 September 2014
Find the Distance - Using C plusplus Programming Fundamental.

// programme to find the distance.
//Entre the value of Velocity ,accelaration,and time.
//compilar - Microsoft visual studio 2008
#include "stdafx.h"
#include <iostream>;
using namespace std;
int main ()
{
float vel,acc,time,dis;
cout<<"Enter the value of VELOCITY ";
cin>>vel;
cout<<"Enter the value of ACCELERATION";
cin>>acc;
cout<<"Enter the value of TIME";
cin>>time;
dis=vel*time+0.5*acc*time*time;
cout<<"Total...
Monday, 22 September 2014
Find the Average of the three Number |C++ programming|
08:06
No comments
#include "stdafx.h"
#include <iostream>;
using namespace std;
int main()
{
float x,y,z,sum,avg;
cout<<"entre the values";cout<<endl;
cout<<"entre the first value";
cin>>x;
cout<<"entre the second value";
cin>>y;
cout<<"entre the third value";
cin>>z;
sum=x+y+z;cout<<endl;
cout<<"the totle average of the num is";
avg=sum/3;
cout<<avg;
cout<<endl;
system("pause");
...
Sunday, 21 September 2014
What are Translator and its types with full Definition and example.
What are translator:
It is a system software which is used to convert Assembly /High level language in to tarqet language is called machinelanguage.when we input some it process and a result it give us out put.
Types of translator:
...
Types of Computer languages | With full detail and Definition |
Types of Computer Languages:
Low Level Language:
Low Level Language are Basically Machine Codes...
Saturday, 20 September 2014
Introduction Programming Fundamental | what is Computer |

=>What is Computer system:
Computer System
...
Subscribe to:
Posts (Atom)