| printf | |||||||||||||||||||||||||||
| #include <stdio.h> | |||||||||||||||||||||||||||
| main() | |||||||||||||||||||||||||||
| { | |||||||||||||||||||||||||||
| int num_tacos; | |||||||||||||||||||||||||||
| float price_of_taco; | |||||||||||||||||||||||||||
| num_tacos = 30; | |||||||||||||||||||||||||||
| price_of_taco = 1.45; | |||||||||||||||||||||||||||
| printf("The number of tacos is %d\n", num_tacos); | |||||||||||||||||||||||||||
| printf("The price of a taco is %f\n", price_of_taco); | |||||||||||||||||||||||||||
| } | |||||||||||||||||||||||||||
| % a.out | |||||||||||||||||||||||||||
| The number of tacos is 30 | |||||||||||||||||||||||||||
| The price of a taco is 1.450000 |
|
|
|||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||