-
-
Save rkhang7/855d1b007fbdc156e7f5c6b941518060 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// tong so le | |
#include <stdio.h> | |
#include <conio.h> | |
int main() | |
{ | |
int x[3]; | |
int s=0; | |
for(int i=0;i<3;i++) | |
{ | |
printf("Nhap 3 so: ");scanf("%d",&x[i]); | |
} | |
for(int i=0;i<3;i++) | |
if(x[i]%2!=0) | |
{ | |
s=s+x[i]; | |
} | |
printf("Tong so le la %d",s); | |
getch(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment