Demo entry 6763652

c

   

Submitted by Z on Oct 24, 2018 at 11:37
Language: C. Code size: 461 Bytes.

#include<stdio.h>
int main()
{
	int a, b;
	float d, e;
	char c1, c2;
	double f, g;
	long m, n;
	int p, q;
	a = 61; b = 62;
	c1 = 'a'; c2 = 'b';
	d = 3.56f; e = -6.87f;
	f = 3147.890121; g = 0.123456789;
	m = 50000; n = -60000;
	p = 32768; q = 40000;
	printf("a = %d, b = %d\nc1 = %c, c2 = %c\nd = %6.2f, e = %6.2f\n", a, b, c1, c2, d, e);
	printf("f = %15.6f, g = %15.12f\nm = %ld, n = %ld\np = %u, q = %u\n", f, g, m, n, p, q);
	return 0;
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).