Write Code With Out Suggestion
Write Code With Out Suggestion
sum+=i;
if (a==b)
return a;
int a=7;
int b=&a;
b=8;
FILE *f;
f = fopen(‘output’, “w”);
fprintf(f, “hehe\n”);
fclose(f);
while (i<=5)
A[i]=i;
I++;
a/Invalid command
b/
World
World
World
c/Hello
d/112233,1337,12345678,9999
a/
#include<stdio.h>
int main()
int n, i, result;
scanf("%d", &n);
result = n*i;
return 0;
b/
#include<stdio.h>
Int main()
Int n;
Scanf(“%d”, &n);
If (n%2 == 0)
Else
Printf(“%d is an odd number!”, n);
Return 0;
c/
#include<stdio.h>
Int main()
Int a, b, temp;
Puts(“Swap number”);
Printf(“Number a: “);
Scanf(“%d”, &a);
Printf(“Number b: ”);
Scanf(“%d”, &b);
Printf(“Start swaping…\n”);
Temp=a;
A=b;
B=temp;
Printf(“After swap\n”);
Return 0;
#include<stdio.h>
#include<stdlib.h>
Int main()
{
Scanf(“%d”, &n);
If (n<=0 || n>10)
Exit(0);
Prinf(“a[%d]= ”, i);
Scanf(“%d”, &a[i]);
Return 0;
Int sum=0;
Sum+= arr[I];
Return sum;
}
Switch(n%2)
Case 0:
Break;
Case 1:
Break;
char name[64];
fclose(f);
fprintf(f, "HelloWorld");
close(f);
a/59 40 58
b/61 89 58
c/
60, 92, 42, 25
d/Code lỗi
a/
#include<stdio.h>
int main()
printf("Name: ");
scanf("%s", name);
scanf("%s", phone);
fclose(f);
return 0;
c/
#include<stdio.h>
Int main()
Int a[]={12, 75, 23, 38, 90, 11, 22, 18, 01};
Return 0;
}
Min=a[i];