اهلا وسهلا بك فى بوابة الثانوية العامة ... سجل الان

العودة   بوابة الثانوية العامة المصرية > الجامعات والمعاهد المصرية > كليات المجموعة الرياضية

كليات المجموعة الرياضية (الهندسة - الحاسبات والمعلومات - التجارة & التجارة إنجلش - الفنون التطبيقية والجميلة)

 
 
أدوات الموضوع انواع عرض الموضوع
Prev المشاركة السابقة   المشاركة التالية Next
  #11  
قديم 25-11-2008, 11:13 PM
الصورة الرمزية ananoo
ananoo ananoo غير متواجد حالياً
طالبه جامعى (كلية حاسبات ومعلومات) - فريق الاسطوانات التعليمية
 
تاريخ التسجيل: Jun 2008
المشاركات: 359
معدل تقييم المستوى: 18
ananoo is on a distinguished road
افتراضي كنت بصغر الصورة بس يا ندى :)

السلام عليكم
انا عملتها

كود:
#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
 

العلامات المرجعية


ضوابط المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا يمكنك اضافة مرفقات
لا يمكنك تعديل مشاركاتك

BB code متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع


جميع الأوقات بتوقيت GMT +2. الساعة الآن 10:26 AM.