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; }
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 8
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
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
Veeg om het menu te tonen
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; }
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 8
single