All pastes #544439 Raw Edit

Anonymous

public c v1 · immutable
·published 2007-06-06 12:58 UTC
rendered paste body
#include <stdlib.h>#include <stdio.h>main() {		int integer;	char* character;	float floating;	/*	String som taes inn må være en lang string, no whitespace!	*/	printf("Ta innput av [int string float]: ");	scanf("%d %s %f", &integer, character, &floating);	printf("Leste inn: %d - %s - %f\n", integer, character, floating);		/*	Eksempel på kjøring:		tore:~/UNIX2 tore$ ./scanf 	Ta innput av [int string float]: 10 tore 6.5	Leste inn: 10 - tore - 6.500000	tore:~/UNIX2 tore$	*/}