#include "graphics.h"
#include "conio.h"
#include "stdio.h"
int income49,products49,income56,products56,income78,products78int n=3;//years
void input()//柱状图的数据可以自己输入
{
printf("Please input nation income and social products in 1949: ");
scanf("%d %d",&income49,&products49);
printf("Please input nation income and social products in 1956: ");
scanf("%d %d",&income56,&products56);
printf("Please input nation income and social products in 1978: ");
scanf("%d %d",&income78,&products78);
}
void draw()
{
rectangle(80,80,500,400);
rectangle(90,90,125,115);
rectangle(90,130,125,155);
setfillstyle(1,YELLOW);
bar(90,90,125,115);
setfillstyle(1,RED);
bar(90,130,125,155);
outtextxy(130,100,"nation");
ou