A quick word on blocking ads

It looks like you are using an ad blocker. That's okay. Who doesn't? But without advertising revenue, we can't keep making this site awesome. Click the link below for instructions on disabling adblock.

How to disable ad-blocker for Newschoolers

  • Home
  • News
    • Latest
    • Top Rated
    • Features
    • Podcasts
    • Tags
    • Interviews
    • Event Coverage
    • Opinions
    • Industry News
    • Gear
  • Forums
    • Categories
    • Ski Gabber
    • Non-Ski Gabber
    • Site Discussion
    • Media & Arts
    • Gear
    • Lady Gabber
    • Content Creators
    • AT & Backcountry
    • Regionals
  • Gear
    • Gear Guide 2024-25
    • Gear Guide 2023-24
    • The Roofbox Reviews
    • Editors' Picks
    • Gear Talk
  • Buy/Sell
    • Map View
  • Photos
    • Latest
    • Top Rated
  • Videos
    • Latest
    • Top Rated
    • Ladies
  • Store
  • More
    • Terrain Parks Guide
    • Contests
    • NS Giveaway
    • Top Rated Members
  • Search
  • Login
  • Login

Login to Newschoolers

Register Lost password?

Search Newschoolers

Preview

LOADING...
  • Forums
  • Non-Ski Gabber
  • Programming Issue
  • Reply

Replying to Programming Issue

robotdna:
I am writing a program to tell me shape and bond angle of a molecule when the bonding and non-bonding domains are entered. This returns a "Missing Then in the If..EndIf block" Error, yet I am not missing any Then statements. What is going on?

Define b(c,d)=
Prgm
:If c=2 and d=0 Then
:Disp "Linear, 180"
:ElseIf c=3 and d=0 Then
:Disp "Trigonal Planar 120"
:ElseIf c=2 and d=1 Then
:Disp "Trigonal Planar Bent/V-Shaped <120(116)"
:ElseIf c=4 and d=0 Then
:Disp "Tetrahedral"
:ElseIf c=3 and d=1 Then
:Disp "Trigonal pyramidal 107"
:ElseIf c=2 and d=2 Then
:Disp "Tetrahedral Bent 104.5"
:ElseIf c=5 and d=0 Then
:Disp "Trigonal Bipyramidal 120, 90"
:ElseIf c=4 and d=1 Then
:Disp "Seesaw <120, 90"
:ElseIf c=3 and d=2 Then
:Disp "T-Shaped 90"
:ElseIf c=2 and d=3 Then
:Disp "Linear 180"
:ElseIf c=6 d=0 Then
:Disp "Octahedral 90"
:ElseIf c=5 and d=1 Then
:Disp "Square Pyramidal 82, 90"
:ElseIf c=4 and d=2 Then
:Disp "Square Planar 90"
:EndIf
:EndPrgm

Click to expand post

Follow Us

Newsletter

Subscribe to our newsletter and stay up-to-date with the latest news from Newschoolers and our partners

Subscribe
Register Contact Advertise Privacy Policy Terms of Use
Newschoolers has affiliate partnerships so we may receive compensation for some links to products and services.
© 2025 NEWSCHOOLERS, INC.
NEWSCHOOLERS is a registered trademark of NEWSCHOOLERS, INC.
  • Bike
  • Fantasy Surfer
  • Newschoolers
  • Powder
  • Ridemonkey
  • Snowboarder
  • Surfer
  • TransWorld Skateboarding