В каком дистрибутиве С открыть этот код? - C (СИ)
Формулировка задачи:
В каком дистрибутиве С открыть этот код?
Dev c++, turbo c выдают ошибки
#include<stdio.h>
#include<conio.h>
#include<string.h>
#define TOP(c) (c<10?c+'0':c-10+'A')
void reverse(char*s)
{
reverse(s);
printf("%s",s);
}
void main()
{
clrscr();
unsigned long chislo;
unsigned sys;
int i;
char s[50];
printf("Enter count:");
scanf("%lu",&chislo);
printf("Enter system:");
scanf("%u",&sys);
if(sys!=0)
{
for (i=0;chislo>0;chislo/=sys)
s[i++]=TOP(chislo%sys);
s[i]='\0';
for (i=strlen(s)-1;i>=0;i--)
printf("%c",s[i]);
printf("\n");
}
getch();
}Решение задачи: «В каком дистрибутиве С открыть этот код?»
textual
Листинг программы
int main(void)