C syntax

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/10

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

#include <stdio.h>

if printf scanf is used

2
New cards

#include <math.h>

if sin cos sqrt is used

3
New cards

#include <string.h>

if strlen strcpy strcmp strcat is used

4
New cards

for loop

<p></p>
5
New cards

while loop

knowt flashcard image
6
New cards

do while loop

knowt flashcard image
7
New cards

printf

printf("My age is %d and Pi is %.2f\n", age, pi);

Output: My age is 30 and Pi is 3.14

8
New cards

scanf

scanf("%d", &number);

9
New cards

if else statements

knowt flashcard image
10
New cards

must declare and assign variables

<p></p>
11
New cards