مطلوب exercise 5 - نسخة قابلة للطباعة +- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb) +-- قسم : قسم لغات البرمجة الاخرى (http://vb4arb.com/vb/forumdisplay.php?fid=4) +--- قسم : قسم لغة ++C (http://vb4arb.com/vb/forumdisplay.php?fid=19) +---- قسم : قسم اسئلة ++C (http://vb4arb.com/vb/forumdisplay.php?fid=34) +---- الموضوع : مطلوب exercise 5 (/showthread.php?tid=13512) |
مطلوب exercise 5 - Alshaf3y - 14-10-15 السلام عليكم ورحمة الله وبركاته Write a C++program that prints a number n given by the user in the reverse order (7163=>3617) أرجو من أهل الخبرة مساعدتنا في حل التدريب. RE: مطلوب exercise 5 - noorsamiahmed - 15-12-15 int n,nr=0; cout<<"input number ?"; cin>>n; while( n>9) { nr=nr+(n%10); nr=nr*10; n=n/10; } nr=nr+n; cout<<nr; |