Knowee
Questions
Features
Study Tools

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.

Question

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.
🧐 Not the exact question you are looking for?Go ask a question

Solution 1

Sure, here is a simple Tcl program that prints all numbers from 1 to 100, which are divisible by 4, but skips those in the 70's and 90's:

for {set i 1} {$i <= 100} {incr i} {
    if {$i % 4 == 0} {
        if {$i >= 70 && $i < 80} {
            continue
        }
        if {$i >= 90 && $i <
    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.

From hundred numbers 1 to 100, three distinct numbers are selected at random. Find theprobability that the selected numbers are divisible by 2 and 3.

What is the sum of the natural numbers from l to 100, which are not divisible by 7 and 11?2946

What is the sum of the natural numbers from l to 100, which are not divisible by 7 and 11?

How many natural numbers are there between 23 and 100, which are exactly divisible by 6?

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.