Generation

generate functionMon, 08 May 2023

programa que muestre los multiplos de 1 y 7 entre el 1y el 100 con metodos

public static void main(String[] args) { int n = 1; int m = 1; while( n <= 100 ){ if ( n % 7 == 0 && n % 1 == 0 ) { System.out.println(n); } n++; } }

Questions about programming?Chat with your personal AI assistant