SlideShare a Scribd company logo
1 of 2
Bod1
#include<stdio.h>
#include<conio.h>
main() {
int too;
printf("1-7 too oruulna uu:");
scanf("%d",&too);
switch(too) {
case 1 : printf("Monday"); break;
case 2
: printf("Tuesday");break;
case 3 : printf("Wednesday");break;
case 4 : printf("Thursday");break;
case 5 : printf("Friday");break;
case 6 : printf("Saturday");break;
case 7 : printf("Sunday");break;
default: printf("1-7 too bish bna");
}
getch();
}
Bod2
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int a,b,c ;
float x1,x2,d;
printf("a,b,c-g oruul:");
scanf("%d %d %d",&a,&b,&c);
d=b*b-4*a*c;
if(d>=0);
d=sqrt(d);
x1=(-b)/2*-d/2*a;
x2=(-b)/2*0+d/2*a;
printf("x1,x2: %f %f",x1,x2);
getch();
}

More Related Content

What's hot

C언어 스터디 강의자료 - 3차시
C언어 스터디 강의자료 - 3차시C언어 스터디 강의자료 - 3차시
C언어 스터디 강의자료 - 3차시Junha Jang
 
C언어 스터디 강의자료 - 2차시
C언어 스터디 강의자료 - 2차시C언어 스터디 강의자료 - 2차시
C언어 스터디 강의자료 - 2차시Junha Jang
 
C언어 스터디 강의자료 - 4차시
C언어 스터디 강의자료 - 4차시C언어 스터디 강의자료 - 4차시
C언어 스터디 강의자료 - 4차시Junha Jang
 
Sumahexavector
SumahexavectorSumahexavector
Sumahexavectorjbersosa
 
Sources
SourcesSources
Sourcesyonsei
 
(Meta 4) ejemplo calcular la mitad de un numero dev c++
(Meta 4) ejemplo calcular la mitad de un numero dev c++ (Meta 4) ejemplo calcular la mitad de un numero dev c++
(Meta 4) ejemplo calcular la mitad de un numero dev c++ Eli Diaz
 
Lection 5function
Lection 5functionLection 5function
Lection 5functiondaalt209
 

What's hot (13)

C언어 스터디 강의자료 - 3차시
C언어 스터디 강의자료 - 3차시C언어 스터디 강의자료 - 3차시
C언어 스터디 강의자료 - 3차시
 
C언어 스터디 강의자료 - 2차시
C언어 스터디 강의자료 - 2차시C언어 스터디 강의자료 - 2차시
C언어 스터디 강의자료 - 2차시
 
Bubble sort
Bubble sortBubble sort
Bubble sort
 
C언어 스터디 강의자료 - 4차시
C언어 스터디 강의자료 - 4차시C언어 스터디 강의자료 - 4차시
C언어 스터디 강의자료 - 4차시
 
Sumahexavector
SumahexavectorSumahexavector
Sumahexavector
 
Sources
SourcesSources
Sources
 
งาน#2
งาน#2งาน#2
งาน#2
 
Diseño y pruebas de unidad
Diseño y pruebas de unidadDiseño y pruebas de unidad
Diseño y pruebas de unidad
 
(Meta 4) ejemplo calcular la mitad de un numero dev c++
(Meta 4) ejemplo calcular la mitad de un numero dev c++ (Meta 4) ejemplo calcular la mitad de un numero dev c++
(Meta 4) ejemplo calcular la mitad de un numero dev c++
 
Lection 5function
Lection 5functionLection 5function
Lection 5function
 
Clang2018 class2
Clang2018 class2Clang2018 class2
Clang2018 class2
 
Derivada funcional
Derivada funcionalDerivada funcional
Derivada funcional
 
Sumahex
SumahexSumahex
Sumahex
 

C++ bodolguud net