Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- #include<stdlib.h>
- int main()
- {
- float f1= 204, f2= 42;
- int i1=204, i2=42;
- float fffbolum1, fffbolum2, ddfbolum1, ddfbolum2;
- int ffdbolum1, ffdbolum2, dddbolum1, dddbolum2;
- fffbolum1 = f1 / f2 ;
- ffdbolum1 = f1 / f2 ;
- printf("a)%f/%f = %f\n",f1,f2,fffbolum1);//iki tane float sayının float sonucu
- printf(" %f/%f = %d\n",f1,f2,ffdbolum1);//iki tane float sayının int sonucu
- fffbolum2 = f2 / f1 ;
- ffdbolum2 = f2 / f1 ;
- printf("b)%f/%f = %f\n",f2,f1,fffbolum2);//iki tane float sayının float sonucu
- printf(" %f/%f = %d\n",f2,f1,ffdbolum2);//iki tane float sayının int sonucu
- dddbolum1 = i1 / i2 ;
- ddfbolum1 = i1 / i2 ;
- printf("c)%d/%d = %d\n",i1,i2,dddbolum1);//iki tane int sayının int sonucu
- printf(" %d/%d = %f\n",i1,i2,ddfbolum1);//iki tane int sayının float sonucu
- dddbolum2 = i2 / i1 ;
- ddfbolum2 = i2 / i1 ;
- printf("d)%d/%d = %d\n",i2,i1,dddbolum2);//iki tane int sayının int sonucu
- printf(" %d/%d = %f\n",i2,i1,ddfbolum2);//iki tane int sayının float sonucu
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement