برنامه ارسالی از طرف خانم اسدی
#include <iostream.h> #include <conio.h> int main() { int x, y,c=0; cout<< "enter number:"; cin>> x; cout<< "enter part:"; cin>> y; if (y==0) { cout<<"result is undefined"; getch(); return 0; } while ((x-y)>=0) { c++; x=x-y; } cout<<"result is:" << c; getch(); return 0; }