|
Re: C Programming Homework Help Needed
@ genius slimbo jones
you look like not a toronto people korean or chinese or like that..you are the king congratulations or you think that you are the best,nice for you.you said you have challanged with your students what a genius man you are challenging with students huh!
take your number or whatever you want..
@dave
thanks again man you really helped me to make the program.
#include<stdio.h>
int main(void)
{
int sayi,bolum,kalan,sonuc=0,counter=0,p=1,i;
for(i=0;i>-1;i++)
{
do
{ printf("Enter a positive integer:");
scanf("%d",&sayi);}
while(sayi<0);
if(sayi==0)
{
printf("Stop... Bye..");
break;}
else
{do
{bolum=sayi/2;
kalan=sayi-(bolum*2);
sayi=bolum;
p=1;
for(i=0;i<counter;i++)
{p=p*10;
}sonuc=sonuc+(kalan*p);
counter++;}
while(bolum!=0);
printf("It is %d. At least %d digits required.\n",sonuc,counter);}
sonuc=0;
counter=0;}
getchar();
getchar();
return 0;
}
@ indiana jones
take your number and write it.or just run it in your ..head.
take your community and go higher the flying man..
best wishes super genius indiana jones.
|