// Print all the numbers which multiplied by 3 till last limit
#include<stdio.h>
#include<conio.h>
void main()
{
int a,l;
clrscr();
printf("\n Enter a last limit : ");
scanf("%d",&l);
for(a=0;a<=l;a++)
{
if(a%3==0)
printf("\n%d",a);
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int a,l;
clrscr();
printf("\n Enter a last limit : ");
scanf("%d",&l);
for(a=0;a<=l;a++)
{
if(a%3==0)
printf("\n%d",a);
}
getch();
}
No comments:
Post a Comment