#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int x = 0;
float y = 0;
printf("Nhap ban phim so nguyen X \n");
scanf("%d",&x);
printf("Nhap ban phim so thuc Y \n");
scanf("%f",&y);
printf("%5d \n",x);
printf("%-5d \n",x;
printf("%3d \n",x);
//double lamtronsolen = 0;
//lamtronsolen = ceil(y);
printf("%.2f \n",y);
printf("%6.3f \n",y);
printf("%-6.0f \n",y);
return 0;
}
Mình không hiểu tại sao bị lỗi nhỉ nó báo lỗi:
D:\C\Project1\Project 37\main.c|14|error: expected ‘)’ before ‘;’ token|
D:\C\Project1\Project 37\main.c|23|error: expected ‘;’ before ‘}’ token|
Rất hay bị mấy lỗi mà ko nhìn ra được.