Knowee
Questions
Features
Study Tools

Write a TCL program to get the numbers in the range (given in arguments) which are only divisible by 3 and 7.

Question

Write a TCL program to get the numbers in the range (given in arguments) which are only divisible by 3 and 7.
🧐 Not the exact question you are looking for?Go ask a question

Solution 1

Sure, here is a simple TCL program that will print the numbers in a given range that are divisible by both 3 and 7.

proc divisible_by_3_and_7 {start end} {
    for {set i $start} {$i <= $end} {incr i} {
        if {$i % 3 == 0 && $i % 7 == 0} {
            puts $i
        }
    }
}

# Call t
    Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  

This problem has been solved

Similar Questions

Write a TCL program to get the numbers in the range (given in arguments) which are only divisible by 3 and 7.

write a tcl program to print all the numbers from 1 to 100.which is divisible by 4 and skip when its in 70's and 90's.

Write a program to sort integers in ascending order. Input is passed in TCL file argument.

If an integer K is divisible by 2, 5 and 13. What is the next largest number that is divisible by all the 3 given numbers?

Write a Python program to search the numbers (0-9) of length between 1 to 3 in a given string

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.