// 作业12章编程练习1题
//
// Created by mack bookAir on 2019/8/17.
// Copyright © 2019 mack bookAir. All rights reserved.
//修改课本12.4 不使用全局变量
#include <stdio.h>
int critic(void);
int main(void)
{
int units=0;
printf("How many pounds to a firkin of butter?\n");
scanf("%d",&units);
while((units=critic())!=56)
critic();
printf("You must have looked it up!\n");
return 0;
}
int critic(void)
{
int units;
printf(“NO luck,my friend. Try again.\n”);
scanf("%d",&units);
return units;
}