It looks like you're new here. If you want to get involved, click one of these buttons!
#include <stdio.h>
int main()
{
int ten = 10;
printf(\"The value of variable ten is %i\n\",ten);
return(0);
}
The value of variable ten is 10
#include <stdio.h>
//Remember to comment code ;)
int main()
{
float pi = 3.14159265;
printf(\"Do you know what pi equals? It equals %f but its infinite!\n\",pi);
return(0);
}
Do you know what pie equals? It equals 3.14159265 but its infinite!
#include <stdio.h>
int main()
{
double dubz = 1.709195313634613562739 //Setting dubs to a giant number
printf(\"The value of dubz equals %d\n\",dubz);
return(0);
}
The value of dubz equals 1.709195313634613562739
char name[20];
char lol = \"lolzers\";
int a, b, c, d;
double v1, v2, v3;
a = 12
b = 13
....
# define total 50
# define pi 3.14159
#include <stdio.h>
int main()
{
printf(\"The value of ten is %i\n\",10);
return(0);
}
The value of ten is 10
printf(\"The value of ten is %i\n\",10);
printf(\"The value of ten is %i\n\",20);
The value of ten is 20
OUTPUT
[bursihido@Exploiter c]$ gcc double.c
double.c: In function ‘main’:
double.c:5:1: error: expected ‘,’ or ‘;’ before ‘printf’
#include <stdio.h>
int main()
{
double dubz = 1.709195313634613562739; //Setting dubs to a giant number
printf(\"The value of dubz equals %d\n\",dubz);
return(0);
}