|
كليات المجموعة الرياضية (الهندسة - الحاسبات والمعلومات - التجارة & التجارة إنجلش - الفنون التطبيقية والجميلة) |
|
أدوات الموضوع | انواع عرض الموضوع |
|
#1
|
||||
|
||||
![]()
إن شاء الله
هى ممكن تيجى من اللى أخدناه قبل كده وبكره ان شاء الله لو محدش جاوب هجاوبها بإذن الله بس بجد عجبنى التفكير يا ananoo ربنا يوفقكم بإذن الله . .
__________________
![]() |
#2
|
||||
|
||||
![]()
السلام عليكم
![]() كود:
#include <iostream.h> #include <conio.h> void main() { int complete; cout<<"\n to stsrt press 0:"; cin>>complete; while(complete==0) { int input; int firstno; int secondno; int result; cout<<"\n\t\t Enter the first NO:"; cin>>firstno; cout<<"\n\t\t Enter the srcond No:"; cin>>secondno; cout<<"\n\t\t\t\t for(+) Enter 1"; cout<<"\n\t\t\t\t for(-) Enter 2"; cout<<"\n\t\t\t\t for(*) Enter 3"; cout<<"\n\t\t\t\t for(\) Enter 4"; cout<<"\n seliction"; cin>>input; switch (input) { case 1: //Note the colon,not a semicolon { result=firstno+secondno; cout<<"\n\t\t\t the result:"<<result; break; } case 2: //Note the colon,not a semicolon { result=firstno-secondno; cout<<"\n\t\t\t the result"<<result; break; } case 3: //note the colon,not a semicolon { result=firstno*secondno; cout<<"\n\t\t\t the result:"<<result; break; } case 4: //note the colon,not a semicolon { result=firstno/secondno; cout<<"\n\t\t\t the result:"<<result; break; } default: //note the colon,not a semicolon { cout<<"\n\t\t\t error,bad input"; break; } } cout<<"\n to complete press 0:"; cin>>complete; } } ![]() صح و لا في لخبطة ؟؟؟
__________________
"نحن قوما أعزنا الله بالأسلام فإذا ابتغينا العزة فغيره أذلنا الله"
"ومن يتق الله يجعل له مخرجا و يرزقه من حيث لا يحتسب" ![]() آخر تعديل بواسطة همس ، 26-11-2008 الساعة 02:43 AM |
العلامات المرجعية |
|
|