שפת C/מערכים/תרגילים: הבדלים בין גרסאות בדף
תוכן שנמחק תוכן שנוסף
אין תקציר עריכה |
מ ←תשובות: - תיקונים קטנים |
||
שורה 9:
<pre>
#include<stdio.h>
{
int a[10],i;
שורה 19:
for(i=9;i>=0;i--)
printf("%d ",a[i]);
return 0;
}
</pre>
שורה 28 ⟵ 29:
<pre>
#include<stdio.h>
{
int a[5][5],i,j,flag=1;
שורה 37 ⟵ 38:
while(flag==1)
{
printf("Please enter
scanf("%d%d",&i,&j);
if((i<=5)&&(i>0)&&(j<=5)&&(j>
{
printf("%d",a[i-
printf("If you want to exit enter 2. if not enter 1\n");▼
▲ printf("If you want to exit enter 2 if not enter 1");
scanf("%d",&flag);
if(flag==2)
printf("Goodbye!\n");
}
else
printf("Please enter vaild
}
return 0;
}
</pre>
|