Zool
Ističe se
- Poruka
- 2.223
poceo sam da radim C u bloodshed devc++
kada otkucam sledeci kod i pokusam da ga kompajlujem izbaci sledecu gresku:
#include <stdio.h>
#include <conio.h>
void main()
{
float x;
printf("Input long in inches"); scanf("%f",&x);
printf("\n Long in centimetres:%10.2f\n",x*2.54);
printf("\n For end of program,press any key\n");
getch();
}
GRESKA:main must return int
kada otkucam sledeci kod i pokusam da ga kompajlujem izbaci sledecu gresku:
#include <stdio.h>
#include <conio.h>
void main()
{
float x;
printf("Input long in inches"); scanf("%f",&x);
printf("\n Long in centimetres:%10.2f\n",x*2.54);
printf("\n For end of program,press any key\n");
getch();
}
GRESKA:main must return int