fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. double wavelength, T3000, T4000, T5000;
  5. printf("Wavelength\tT3000\tT4000\tT5000\n");
  6.  
  7. while (scanf("%lf %lf %lf %lf", &wavelength, &T3000, &T4000, &T5000) == 4) {
  8. printf("%lf\t%lf\t%lf\t%lf\n", wavelength, T3000, T4000, T5000);
  9. }
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5284KB
stdin
# Wavelength (μm)	R (3000K)	R (4000K)	R (5000K)
0.100000	0.052631	8597.097827	11540277.624630
0.150000	61886.797739	184928091.189400	22503279500.035633
0.200000	43884302.889672	17736293515.503952	649823324616.819702
0.250000	1749855013.922771	212934107010.439453	3796601739050.894043
0.300000	17268627956.371731	943980191022.524902	10413842737015.632812
0.350000	78613500755.096497	2426446171807.105957	18999714637802.250000
0.400000	224010924236.790588	4503983818657.949219	27279293543295.250000
0.450000	471789382996.470764	6797539300328.109375	33729363814597.820312
0.500000	809780411230.335693	8938878908266.988281	37835594540913.406250
0.550000	1203870602919.763916	10689820620355.300781	39752335877067.757812
0.600000	1613087939433.330566	11951978195538.154297	39926232823148.953125
0.650000	2001290110458.907715	12728167836922.826172	38856336336958.296875
0.700000	2342724826419.115234	13077807582858.345703	36980902623116.304688
0.750000	2622795330223.126953	13083027971489.453125	34641638732206.687500
0.800000	2836260450698.994629	12827841397576.210938	32085595412451.855469
0.850000	2984588333923.064453	12387492317589.701172	29481268041973.902344
0.900000	3073428528346.782715	11824347156257.242188	26937370973349.035156
0.950000	3110599549228.125000	11187444089518.046875	24519544324163.519531
1.000000	3104663864328.061523	10513807904752.228516	22263611415708.714844
1.050000	3064014282307.626465	9830420147990.826172	20185454549143.371094
1.100000	2996350157881.986328	9156258526131.968750	18288080844073.421875
1.150000	2908425480642.236816	8504134444326.806641	16566533251137.765625
1.200000	2805973006807.138672	7882231982221.766602	15011224317118.626953
1.250000	2693733827816.393555	7295340188699.436523	13610149792860.421875
1.300000	2575543798919.466797	6745810228661.657227	12350323610681.306641
1.350000	2454445270920.562500	6234282445909.175781	11218680700477.574219
1.400000	2332804781212.667969	5760229044310.983398	10202621500786.404297
1.450000	2212425667366.037109	5322353119326.745117	9290318837742.900391
1.500000	2094649966887.621338	4918877984233.431641	8470869899338.223633
1.550000	1980447323247.000488	4547753958887.574219	7734349425345.740234
1.600000	1870490597343.641357	4206803797541.038086	7071801803142.013672
1.650000	1765218967508.594727	3893822961792.246094	6475197109977.836914
1.700000	1664889823670.281738	3606646976179.328125	5937367524952.346680
1.750000	1569620945741.389648	3343195013377.687988	5451934703633.577148
1.800000	1479424447613.212891	3101496490116.934570	5013234791174.234375
1.850000	1394233857881.008789	2879705665925.778809	4616245139053.265625
1.900000	1313925552496.560547	2676107896243.777832	4256515067721.279297
1.950000	1238335585787.896484	2489120193901.145996	3930101895246.544434
2.000000	1167272802899.144531	2317288014853.574707	3633512734206.092773
2.050000	1100528967841.624023	2159279640515.578369	3363652111728.835938
2.100000	1037886510753.028564	2013879130521.189209	3117775199841.414551
2.150000	979124386272.731201	1879978528812.804688	2893446293490.216309
2.200000	924022441128.433594	1756569794537.260986	2688502100237.569336
2.250000	872364611269.136353	1642736776371.973145	2501019380725.973145
2.300000	823941205067.298096	1537647439061.806641	2329286483925.369141
2.350000	778550477150.760620	1440546472606.964600	2171778343581.639404
2.400000	735999655369.546021	1350748359203.185547	2027134534093.180908
2.450000	696105549531.662476	1267630934434.062744	1894140020058.455811
2.500000	658694843372.540649	1190629452744.652832	1771708270693.975586
2.550000	623604149502.498657	1119231149503.755859	1658866446239.911133
2.600000	590679889763.650757	1052970280511.157959	1554742397219.756348
2.650000	559778049663.972168	991423612814.214844	1458553248425.203613
2.700000	530763844640.988098	934206336844.111450	1369595367535.202393
2.750000	503511327271.876587	880968368205.847046	1287235543346.439453
2.800000	477902957731.102783	831391007262.304565	1210903220819.214600
2.850000	453829154431.199829	785183925441.020020	1140083659727.690430
2.900000	431187837570.164490	742082448604.426758	1074311900880.760254
2.950000	409883975012.627808	701845109606.374512	1013167438892.954712
3.000000	389829137361.708496	664251444131.653809	956269513572.930298
stdout
Wavelength	T3000	T4000	T5000