السلام عليكم و رحمة الله و بركاته
شكرا لجهودكم و أتمنى مساعدتي في هذا البرنامج "
write a program to add three numbers and print the output
الكود يحوي أخطاء كثيرة
#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
int x,y,z,i;
cout<<"Enter the first value:"
cin>>[xٍ];
cout<<"Enter the second value:"
cin>>[y];
cout<<"Enter the third value:"
cin>>[z];
i=x+y+z;
cout<<i;
getch();
}أرغب كتابة الكود بدون استخدام for loop
من لديه الخبرة فليساعدني و له الأجر
و شكرا لكم

