All pastes #287596 Raw Edit

Untitled

public c v1 · immutable
#287596 ·published 2006-12-21 16:23 UTC
rendered paste body
#ifdef HAVE_CONFIG_H#include <config.h>#endif#include <stdio.h>#include <stdlib.h>short int k=20;short int l;int main(int argc, char *argv[]){short int i,j;	i = 5;	j = 10;	printf("Hello, world!\n");	printf("This is my first C program!\n");	printf("i has a value of %d, and j has a value of %d\n", i, j);	printf("Did I mention that k has a value of %d?\n",k);	printf("Now its your turn. Type a number!\n");	scanf("%c",&l);		if (l>5) {		printf("Your selection, %c, was larger than 5.\n", l);	} else {		printf("Your selection, %c, was smaller than 5.\n", l);	}	printf("You typed %c\n", l);  return EXIT_SUCCESS;}