MyblogAd

Sunday, August 18, 2013

Accept 10 number and find the greatest of them.....


#include<stdio.h>
#include<conio.h>
void main()
{
int a;
int c;
int b=0;
for(c=1;c<=10;c++)
{
printf("enter the number");
scanf("%d",&a);
if(a>b)
{
b=a;

}

}
printf("the greatest number is %d",b);
}

No comments:

Post a Comment