Дараах нөхцөлт давталт


Бидний авах жишээ гараас хоёр тоог авч, тэдгээрийн ноогдвор, үлдэгдэлийг гаргасаны дараа ахин энэ үйлдлүүдийг давтах эсэх талаар нөхцөл шалгана. Гараас 1 оруулбал ахин давтана, 0-ийг оруулбал давталт зогсоно.


int x;
int m,n;



printf("huvaagdagch:\n"); scanf("%d",&m);

printf("huvaagch:"); scanf("%d",&n);

printf("noogdvor: %d \n",(m/n));

printf("uldegdel: %d \n",(m%n));

printf("urgeljluuleh uu ? (Tiim bol 1/ ugui bol 0)\n"); scanf("%d",&x);


while (x!=0);


Жишээ нь:
huvaagdagch: 16
huvaagch: 5
noogdvor: 3
uldegdel: 1
urgeljluuleh uu ? (Tiim bol 1/ ugui bol 0) 1
huvaagdagch: 97
huvaagch: 20
noogdvor: 4
uldegdel: 17
urgeljluuleh uu ? (Tiim bol 1/ ugui bol 0) 0


  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training in India . Nowadays Java has tons of job opportunities on various vertical industry.


  2. It's very useful blog post with inforamtive and insightful content and i had good experience with this information.I have gone through CRS Info Solutions Home which really nice. Learn more details About Us of CRS info solutions. Here you can see the Courses CRS Info Solutions full list. Find Student Registration page and register now.Find this real time DevOps Training and great teaching. Join now on Selenium Training online course. Upskill career with Tableau training by crs info solutions. Latest trending course is Salesforce Lightning training with excellent jobs.

  3. You should be a part of a contest for one of the highest quality sites on the net. I’m going to highly recommend this blog! The training and certification courses to get trained on microtek training. I got really cleared my doubts by reading your informative information.

    Well i also founded something interesting over here in microtek training solutions

  4. WhatsApp Plus v19.32 Crack application that is messaging for Android system only. This application works on your phones that are different. Whatsapp Crack Version

  5. It is a strong and collective item which is established on and utilized by loads of people in the world. that asks for can move all Microsoft items easily utilizing a single tick for essentially life use. Reloader Download

  6. Looks at to having your own sister. A connection and someone with whom you'll share your young life memories and educational encounters. Happy Sister Day Wishes


Миний бичсэн бичлэг танд өчүүхэн ч болтугай хэрэг болсон бол сэтгэгдлээ бичиж үлдээхийг хүсье. Баярлалаа :)