/*primer2_2*/
/*Pirkaz na ekranu zadatog celog broja u raznim oblicima*/
#include <stdio.h>
main()
{ int x;
printf("\nUnesite ceo broj:\t");
scanf("%d", &x);
printf("\nDecimalnim oblik:\t%d:",x);
printf("\nOktalni oblik:\t\t%o",x);
printf("\nHeksadecimalni oblik:\t%x (%X)\n\n",x,x);
getchar();
return(0);
}
That is a code that i wrote but when i compile it and run it i type a number to see Decimal, Hexadecimal and Octal number of any number that i typed previously but application ends too fast.
Where did i made mistake?
Thnks for Help


Sign In
Create Account

Back to top









