המערכת מאמת סיסמאות, אם פועל = כותב GRATZ, אם לא, אתם נמצאים בלולאה שתמשיך לבקש ממכם קוד
ציטוט:
#include <Stdio.h>
void main()
{
int code=1234,pass;
printf("please enter password");
scanf("%d",&pass);
while(pass !=code){
printf("please enter password");
scanf("%d",&pass);
}
printf("gratz");
}
|
אולי יותר מאוחר אני אקמפל ואעלה לרשת.