91-9990449935 0120-4256464 |
import java.util.Scanner;
class MultiDiv{ public static void main(String args[]){ int n1,n2,sum=0; Scanner in=new Scanner(System.in); n1=in.nextInt(); n2=in.nextInt(); for(int i=n1;i<=n2;i++){ if(i%3==0&&i%9!=0){ sum=sum+i; } } System.out.println(sum); } } | 0 |
By: utkdub@gmail.com On: Mon Jun 13 14:39:53 IST 2016 0 0 0 | 0 |
Are You Satisfied :0Yes0No |