Write a program to print the multiples of 5 till last position

//this is a program to print the multiples of 5 till last position
#include<stdio.h>
#include<conio.h>
void main()
{
int n,i;

printf("\n\nEnter The Last Positon: ");
scanf("%d",&n);

for(i=1;i<=n;i++)
{
if(i%5==0)
printf("\n%d",i);

}
getch();

}

Previous
Next Post »