[ create a new paste ] login | about

Link: http://codepad.org/jFxQR70T    [ raw code | output | fork ]

C, pasted on Oct 18:
/* Filename: C2FIRSt.C */

#include<stdio.h>


main()

{
	int counter=0; /*Integer variable to count through loop */

	char fname[20]; /* Character array holding name */

	printf("what is your first name? \n"); /*PROMPT FOR FIRST NAME */	
	scanf(" %s ", fname); /* Get input as string store in string fname */

	while (counter < 5)
	{
		printf("%s\n" , fname);
		counter++;
	}
	
	

	return;
	





}


Output:
1
2
3
4
5
6
7
8
what is your first name? 
t�x��9y�.�@�
t�x��9y�.�@�
t�x��9y�.�@�
t�x��9y�.�@�
t�x��9y�.�@�

Exited: ExitFailure 17


Create a new paste based on this one


Comments: