Showing posts with label number. Show all posts
Showing posts with label number. Show all posts
Wednesday, February 18, 2015
Java program to display multiplication table of any number

class Table
{
public static void main(String...s)
{
int n,i;
n=Integer.parseInt(s[0]);
for(i=1;i<=10;++i)
System.out.println(n+" * "+i+" = "+(n*i));
}
}
Saturday, February 14, 2015
C program to find factorial of any number using recursion

#include<stdio.h>
#include<conio.h>
void main()
{
int fac,n;
int factorial(int);
clrscr();
printf("Enter any number:");
scanf("%d",&n);
fac=factorial(n);
printf("Factorial=%d",fac);
getch();
}
int factorial(int x)
{
int f;
if(x==1||x==0)
return 1;
else
f=x*factorial(x-1);
return f;
}
Thursday, February 12, 2015
C program to find greatest number among three numbers

#include<stdio.h>
#include<conio.h>
void main()
{
int x,y,z,max;
clrscr();
printf("Enter The Three Numbers:");
scanf("%d%d%d",&x,&y,&z);
max=x;
if(y>max&&y>z)
max=y;
else
if(z>max)
max=z;
printf("
The Greatest Number among %d %d %d is %d",x,y,z,max);
getch();
}
Wednesday, February 11, 2015
Trace Mobile Number Location In Pakistan 2015 Updates
| Trace Mobile Number Location In Pakistan -2015 Updates |
Latest 2015 Trick to Trace Mobile Number in Pakistan. By this you can track or check location of
any phone number in Pakistan. Jazz, Ufone, Zong, Mobilink, Telenor. Cellsaa Tracker is to locate
mobile / cell number with current location, network service provider and signalling. This free
software can be used to find mobile number / phone caller information in seconds. Cellsaa.com is
one of the best missed call finder in the country and it is very safe to use, We are not storing any
individual phone number ... You can search any number of times ..... Please ensure the correctness
of data with relevant network service provider, we are not responsible for any incorrectness! These
results are only tentative.
Trace Mobile Number | Mobile Location Tracker
There is not a difficult method to trace any mobile number. You just have to enter
mobile phone number in box given below and press Find.
Example: 0301-2345678 / 3012345678
You can track following operators mobile numbers:
- Mobilink
- Telenor
- Ufone
- STEL
- Warid
- Zong
Tags: trace mobile number, number trace, trace mobile no, mobile trace, trace mobile, mobile
number location, trace phone number, trace mobile number location, mobile number trace, trace
mobile location, mobile number tracer, mobile number tracking, trace a mobile number, how to
trace mobile number, tracking mobile number
number location, trace phone number, trace mobile number location, mobile number trace, trace
mobile location, mobile number tracer, mobile number tracking, trace a mobile number, how to
trace mobile number, tracking mobile number
C Program to find divisers of a number
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
long int n,i;
cout<<"Enter the number: ";
cin>>n;
cout<<endl<<"Divisers of "<<n<<" are ";
for(i=1;i<=n;++i)
{
if(n%i==0)
cout<<" "<<i;
}
getch();
}
Tuesday, February 10, 2015
C program to find largest number of a list of numbers entered through keyboard
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr(); //to clear the screen
int i,n,x,large=0;
cout<<"How many numbers?";
cin>>n;
for(i=0;i<n;++i)
{
cout<<"
Enter number "<<i+1<<":";
cin>>x;
if(x>large)
large=x;
}
cout<<"
The largest number is "<<large;
getch();
}
Subscribe to:
Posts (Atom)