Programming and Software Development
Showing posts with label
biggest number
.
Show all posts
Showing posts with label
biggest number
.
Show all posts
Friday, April 16, 2010
Biggest out of 10
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int num,n,a=0;
cout<<"enter 10 nos.";
for(num=1;num<=10;num++)
{
cin>>n;
if(a<n)
{
a=n;
}
}
cout<<"biggest no. is"<<a;
getch();
}
Older Posts
Home
Subscribe to:
Posts (Atom)