All pastes #2075871 Raw Edit

Stuff

public text v1 · immutable
#2075871 ·published 2011-06-07 00:56 UTC
rendered paste body
#include <string.h>
#include <stdio.h>
int main(int args, char * arg[])
{
    int x, u, z;
    x = 0;
    u = 0;
    z = 0;
    do
    {
        printf("Digite a pressao: ");
        scanf("%d", &u);
        if (u <= 8000)
           z = 0; 
        x = x + 1;
        if (x > 300)
           break;
        else if (u > 8000)
                {
                     z = z + 1;
                     if (z > 4)
                     {
                           while (u > 8000)
                           {
                                 printf("*\n");
                                 printf("*\n");
                                 printf("Digite a pressao: ");
                                 scanf("%d", &u);
                                 x = x + 1;
                                 if (x > 300)
                                    break; 
                           }
                           z = 0;
                     }
                }
                
    }
    while (x <= 300);
    system("PAUSE");
    return 0;
}