// if.cpp -- using the if statement
#include
int main()
{
using namespace std;
char ch;
int spaces = 0;
int total = 0;
cin.get(ch);
while (ch != '.') // q
# Commands covered: if
#
# This file contains a collection of tests for one or more of the Tcl
# built-in commands. Sourcing this file into Tcl runs the tests and
# generates output for errors. No
# Commands covered: if
#
# This file contains the original set of tests for Tcl's if command.
# Since the if command is now compiled, a new set of tests covering
# the new implementation is in the fi
/*
* test file if.c-
* test if statement
*
*/
int main()
{
int a=1, b=3, c=2;
if( c > a && c < b)
println("YES! c="~c);
else
println("NO! c:"~c);
return 0;