#include <stdio.h> #include <conio.h> int main() { int number, notation, z; int i, k=0; int A[100]; printf("Enter the number: "); scanf("%d",&number); printf("Enter the notation: "); scanf("%d", ¬ation); while (number>=notation) { A[k]=number%notation; number=number/notation; z=number; k++; } printf("Number %d v notation %d =%d", number, notation,z); for (i=k-1;i>=0;i--) printf("%d", A[i]);
return 0; }
0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota
Оформи подписку