Skip navigation
You are not logged in.
Advanced Search
Skip user information
KilLah
Beginner
Posts: 9
1
Tuesday, January 16th 2007, 4:13pm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#include <stdio.h> #include <cstdlib> void main() { int wahl; float betrag; printf("\nRECHENPROGRAMM"); printf("\n1 Dm -------> Euro\nEuro------> DM") printf("\n\nBitte Wahl: "); scanf("%i",&wahl); if (wahl == 1){ printf("\nBitte Dm betrag eingeben"); scanf("%f",&betrag); printf("\n%.2f DM sind %.2f Euro",betrag,betrag*0.51129); } if (wahl == 2){ printf("\nBitte DM betrag eingeben"); scanf("%f",&betrag); printf("\n%.2f Euro sind %.2f DM",betrag, betrag*1.95583); } system("pause"); return 0; }
darthdespotism
Professional
Posts: 483
2
Tuesday, January 16th 2007, 4:17pm
3
Tuesday, January 16th 2007, 4:22pm
bcc-fan
Posts: 384
4
Tuesday, January 16th 2007, 7:31pm
5
Wednesday, January 17th 2007, 8:40pm
phax
Posts: 763
6
Wednesday, January 17th 2007, 9:11pm
Remember me?