write a program to print numbers between 11 and 100 and are divisible by 5 in C ++ [closed]

  c++

write a program to print numbers between 11 and 100 and are divisible by 5 in C ++.

this is my program:

for (int i =11; i<= 100; i++){

    if(i % 5==0)
        System.out.print(i +" ");

    if (i %10==0){
        System.out.println();
}

Source: Windows Questions C++

LEAVE A COMMENT