[ create a new paste ] login | about

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

C, pasted on Feb 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 #include <stdio.h>
    void main()
    { 
	float  centimeters,inches,feet;
	printf(Enter the number of Centimetres: )
	scanf(%f,&centimeters);

        inches = centimeters/2.54;
        printf("\n the conversion in inches is %f",inches);

	feet= inches/12;
	printf(“\n The Conversion in feet is: %f,feet);

}


Output:
In function 'main':
Line 5: error: stray '\342' in program
Line 5: error: stray '\200' in program
Line 5: error: stray '\234' in program
Line 5: error: 'Enter' undeclared (first use in this function)
Line 5: error: (Each undeclared identifier is reported only once
Line 5: error: for each function it appears in.)
Line 5: error: expected ')' before 'the'
Line 5: error: stray '\342' in program
Line 5: error: stray '\200' in program
Line 5: error: stray '\235' in program
Line 6: error: expected ';' before 'scanf'
Line 6: error: stray '\342' in program
Line 6: error: stray '\200' in program
Line 6: error: stray '\234' in program
Line 6: error: stray '\342' in program
Line 6: error: stray '\200' in program
Line 6: error: stray '\235' in program
Line 12: error: stray '\342' in program
Line 12: error: stray '\200' in program
Line 12: error: stray '\234' in program
Line 12: error: stray '\' in program
Line 12: error: 'n' undeclared (first use in this function)
Line 12: error: expected ')' before 'The'
Line 12: error: stray '\342' in program
Line 12: error: stray '\200' in program
Line 12: error: stray '\235' in program
Line 3: warning: return type of 'main' is not 'int'


Create a new paste based on this one


Comments: