Printf Practice
main.c
123456789101112#include <stdio.h> int main() { int iVariable = 832; float fVariable = 54.984; char cVariable = '#'; printf(" iVariable = %d \n fvariable = %f \n cVariable = %c \n", iVariable, fVariable, cVariable); return 0; }
Tehtävä
Swipe to start coding
- Assign the value of
100to the variable namedintVariable. - Choose an appropriate data type for the variable
charVariable. - Utilize the
printf()function to display the values of both variables in a single call.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 8
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Awesome!
Completion rate improved to 2.63
Printf Practice
Pyyhkäise näyttääksesi valikon
main.c
123456789101112#include <stdio.h> int main() { int iVariable = 832; float fVariable = 54.984; char cVariable = '#'; printf(" iVariable = %d \n fvariable = %f \n cVariable = %c \n", iVariable, fVariable, cVariable); return 0; }
Tehtävä
Swipe to start coding
- Assign the value of
100to the variable namedintVariable. - Choose an appropriate data type for the variable
charVariable. - Utilize the
printf()function to display the values of both variables in a single call.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 8
single