// 08242009.cpp, P H Anderson, Aug 24, '09

#include <stdio.h>
#include <stdlib.h>

int main(void)          
{  
    float a, b, r1, r2, req;
    int n;
            
    printf("Enter two floats: ");
    scanf("%f %f", &a, &b);
    if (a > b)
    {
        printf("%.2f is greater than %.2f\n", a, b);
    }
    else
    {
        printf("%.2f is greater than %.2f\n", b, a);   
    }     
    
    printf("\n\n");
        
    system("pause");    // pause to admire 
    
    printf("Enter two resistor values:");
    scanf("%f %f", &r1, &r2);
    
    req = (r1 * r2) / (r1 + r2);
    
    printf("%.2f in para with %.2f is %.2f\n", r1, r2, req);
    
    system("pause");
       
    for (n=0; n<25; n++) // print 25 dots
    {
        printf("*");
    }
    printf("\n");  
    
    for (n=0; n<50; n++) // advance 50 spaces
    {
        printf(" ");
    }
    for (n=0; n<25; n++) // move backwards
    {
        printf("!\b\b");
    }
    printf("\n\n");
    
    system("pause");                  
}