Skip to content

Instantly share code, notes, and snippets.

View 173210's full-sized avatar

173210

View GitHub Profile
@173210
173210 / bmi.cc
Created November 20, 2015 04:09 — forked from redgosho/bmi.cc
BMI
#include<stdio.h>
#include<stdlib.h>
#include<limits.h>//in gcc
#include<errno.h>//in gcc
#include<math.h>
double get_double_num(const double max, const double min){
char s[200];
if (NULL == fgets(s, 200, stdin)){