JAVA Model Questions || BIM STUDY NOTES

Model Questions Write a Java program to display all the numbers between -300 to -1 which when divided by 17 gives 7 as remainder and also displays sum of those numbers. public class Sum {     public static void main(String[] args) {         int i,s=0;         for(i=-300;i<-1;i++)         {             if(i%17==-7){             System.out.print(i+ ” “); […]

Continue Reading