Answer:
public class num7 {
public static void main(String[] args) {
int n =1;
while(n<200){
if(n%5==0 && n%7==0){
System.out.print(n);
System.out.print(",");
}
n++;
}
}
}
Explanation:
- In Java programming Language
- Create and initialize an int variable (n=1)
- Create a while loop with the condition while (n<200)
- Within the while loop use the modulo operator % to check for divisibility by 5 and 7
- Print the numbers divisible by 5 and 7
Answer:
True
Explanation:
In Computer science, It's true that injection attacks variants can occur whenever one program invokes the services of another program, service, or function and passes to it externally sourced, potentially untrusted information without sufficient inspection and validation of it.
public class ArithmeticAssignment {
public static void main(String[] args) {
Tester test = new Tester();
test.printTester();
}
}
class Tester{
Tester(){
}
void printTester(){
int i1 = 79 + 3 * (4 + 82 -68) - 7 +19;
int i2 = (179 +21 +10) / 7 + 181;
int i3 = 10389 * 56 * 11 + 2246;
System.out.println(i1);
System.out.println(i2);
System.out.println(i3);
}
}
I think this is what you wanted. I hope this helps!