Commit 4f4bf076 by sameis

Tund6

parent 7a744cea
Showing with 25 additions and 0 deletions
File added
#include <stdio.h>
int main(void)
{
long int Nr, Tul;
int Len = 100;
int Oct[Len];
int i=1, j;
printf("Sisesta kymnendarv: ");
scanf("%ld" , &Nr);
Tul = Nr;
while(Tul !=0)
{
Oct[i++]=Tul%8;
Tul=Tul/8;
}
for(j= i-1; j>0; j--)
printf("%d", Oct[j]);
return 0;
}
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment