They probably didn't explain what they're showing you there which would've covered why they can (read: will ) be different.
#include <stdio.h>
#include <conio.h>
int main()
{
//Declarations
int a,b,c,f;
float g;
char *k;
//Assignments
a=1993;
b=30;
c=10;
g=4.5;
k="I'm learning C, and I just finished chapter 1 using 1 printf statement!";
//Output
printf("Hi, my name is AJ.\nI was born in %d,%d,%d.My fav. number is %.0f.\n%s", a,b,c,g,k );
getch();
}




#include <stdio.h>
#include <conio.h>
int main()
{
//Declarations
float x,y,z;
scanf("%f", &x); // & means address pointer. Required for scanf functions.
scanf("%f", &y);
//Assignments
z=x+y;
//Output.
printf("The sum of the two numbers:%.2f\n", z);
getch();
}