طالبة حاسب آلي
- سؤال في Loop
how many times is the following loop executed? int=3; while(i) {i=i-1; } انا جاوبت انه 3 مرات اللي يعرف بليييز يشرحلي وشي ثاني هل الجمله هاذي صحيحه ولا لا ولماذا: x=x*x+3; انا قلت ان الجمله صحيحه i=-i+-j وقلت انه هاذي غلط بس ماني عارفه ليه
- فهم السؤال
#include<iostream.h> int main () { int year; cout<<"input a number for the year(>=1)"; cin>>year; if (year%100==0) cout<<"the year is not leap year"; else if(year%4==0 || year%400==0) cout<<"the year is leap year"; else if(year<=0) cout<<"sorry your year must …
- فهم السؤال
<include<iostream.h># int main () { int year; cout<<"input a number for the year(>=1)"; cin>>year; if(year/4 || year/400) cout<<"the year is leap year"; else if(year/100) cout<<"the year is not a leap year"; else if(year<=0) cout<<"sorry your year must be grea…
- فهم السؤال
السلام عليكم ورحمة الله وبركاته عندي سؤال وتسليمه السبت ابغى افهم السؤال بس ماابغى حل عشان ماتقولو مخالفه ابغى افهم السؤال بعدين احله واسألكم فيه Leap year calculation (Leap year is a year that has 366 days, a year that has 365 days is not a leap year) Write a…