//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();
}
#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();
}