2)
Code:
#include <stdio.h>

int main()
{
    float n;

    printf(" enter a value\n");
    scanf("%f\n", &n);
    if(n>0) { while(n>0) {
        printf(" enter a value\n");
    scanf("%f\n", &n);
    }}
    else return 0;
    }

is this right ? and/or is there a simpler way of doin this ?