• 30-03-2015, 14:56:25
    #1
    Reveloper
    Merhaba arkadaşlar şu an sınavdayım kaçak göçek girdim nete


    1-) Non-decreasing Numbers: Make a recursion function to determine if a list of positive integer numbers are in non-decreasing order. Use 0 as sentinel to terminate the input. Make a program to your function.

    Enter the integers. Use 0 to finish the input
    
    2 3 4 4 5 7 0
    
    Yes.
    Enter the integers. Use 0 to finish the input
    
    4 5 5 8 5
    
    No.


    2-) The Biggest Number: Make a program that gets a three-digit integer number and then prints the biggest number that can be obtained by re-arranging the digests of the given number. Use two user defined functions in your program: One function to separate the digits into three variables and another function to obtain the biggest number. Complete the following code. You may use additional functions.

    #include<stdio.h>
    void seperateDigits(int, int *,int *, int *);
    int biggestNumber(int,int,int);
    int main(){
       int num,d1,d2,d3;
       printf("Enter a number between 100 and 999: ");
       scanf("%d"&num);
       seperateDigits(num,&d1,&d2,&d3);
       num=biggestNumber(d1,d2,d3);
       printf("The result is %d./n",num);
       return 0;
    }
    
    
    Enter a number between 100 and 999: 253
    
    The result is 532.
  • 30-03-2015, 15:09:51
    #2
    Çıktılardan anladığım; 0 girildiği zaman döngüden çıksın. eğer öyleyse koy do-while koy bide if olsun bitsin ama kesin ben yanlış anladım. Ayrıca bu sorular neden ingilizce. mühendislik ingilizce bölümü mü ? eğer mühendislikse bu sorular niye bu kadar basit ? soruya dönücek olursa eğer doğru anladıysam koy do-while + if bitsin gitsin.
  • 30-03-2015, 15:15:42
    #3
    Reveloper
    fasb adlı üyeden alıntı: mesajı görüntüle
    Çıktılardan anladığım; 0 girildiği zaman döngüden çıksın. eğer öyleyse koy do-while koy bide if olsun bitsin ama kesin ben yanlış anladım. Ayrıca bu sorular neden ingilizce. mühendislik ingilizce bölümü mü ? eğer mühendislikse bu sorular niye bu kadar basit ? soruya dönücek olursa eğer doğru anladıysam koy do-while + if bitsin gitsin.
    bilgisayar programcılığı ingilizce hocam sana zahmet yazarmısın onu ben anlayamadım valla :/
  • 30-03-2015, 15:58:14
    #4
    int sayi;
    
    	do {
    		printf("Sayı Giriniz "); scanf("%d",&sayi);
    
    	} while( sayi != 0 );
    		printf("0 girdiniz ve döngü bitti");
    inş doğrudur yanlış yönlendirmiş olmam ama bu soru bu kadar değildir tahminim yani 0 girdi döngüden çık bu kadar mı ?

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 15:58:14 -->-> Daha önceki mesaj 15:24:51 --



    2'nin amacını anlamadım. çıktıyı vermiş kodları vermiş bizden ne istiyor ?