| Current Path : /var/www/html/venkat/check3/file/rgiit/ |
| Current File : /var/www/html/venkat/check3/file/rgiit/rit2015055_2.c |
#include <stdio.h>
int main()
{
int i;
int a = 0;
int b;
int n;
printf("Enter the number :\n");
scanf("%d",&n);
if(n % 3 == 0)
{
a = n / 3;
for(i = 1 ; i <= a ; i++)
{
printf("%d ", (3 * i));
}
}
else
{
b = n % 3;
n = n - b;
a = n / 3;
for(i = 1 ; i <= a ; i++);
{
printf("%d ",(3 *i));
}
}
return 0;
}