This repository has been archived on 2023-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
VSMechatronics/C5/displaying_variables.c

15 lines
277 B
C
Raw Normal View History

2022-04-08 15:12:38 +00:00
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
// Declare some variables
int a = 1, b = 2;
float f = 1.23f;
// Use printf display text on the screen
printf ("The variables are\na = %d\nb=%d\nf=%f", a, b, f);
// Exit from main
return 0;
}