رد: واجب مقدمة الحوسبه ابغاه اليوم ضروري ..ساعدوني تكفون
1- Write the output of the following program :
// The user will enter a name, age, best friend and best color, and the //program will display all deion in one line
# include <iostream>
# include <conio>
void main( )
{
char first[30], color[30], best[30];
int age,check=5;
while (check !=0)
{
cout << "\n enter first name : " ;
cin >> first;
cout<< "\n enter age : " ;
cin >> age;
cout << "\n enter favorite color:" ;
cin >> color;
cout << "\n enter best friend name : " ;
cin >> best;
cout << "\n" << first << " is " << age << " years old" <<endl;
cout << first << " likes the color " << color <<endl;
cout << first << "'s best friend is " << best <<endl;
cout << " \n to enter another name press 1, to exit press 0 ";
cin>> check;
}
cout << endl << " thank you for using my program :) " ;
getch();
}
عند كتابة مخرجات البرنامج اجعلي المستخدم يدخل البيانات ثلاث مرات..
ساعديني تكفين التسليم تومورو :(
مو فاهمه شي يعني اشرحي وفصلي وش اسوي .. الله يسعدك ياارب
|