[ create a new paste ] login | about

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

C, pasted on Feb 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 #include <stdio.h>
    void main()
    { 
	float  centimeters,inches,feet;
        centimeters=23;   
	printf(“\n 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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
In function 'main':
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 '\' in program
Line 6: error: 'n' undeclared (first use in this function)
Line 6: error: (Each undeclared identifier is reported only once
Line 6: error: for each function it appears in.)
Line 6: error: expected ')' before 'Enter'
Line 6: error: stray '\342' in program
Line 6: error: stray '\200' in program
Line 6: error: stray '\235' in program
Line 13: error: stray '\342' in program
Line 13: error: stray '\200' in program
Line 13: error: stray '\234' in program
Line 13: error: stray '\' in program
Line 13: error: expected ')' before 'The'
Line 13: error: stray '\342' in program
Line 13: error: stray '\200' in program
Line 13: error: stray '\235' in program
Line 3: warning: return type of 'main' is not 'int'


Create a new paste based on this one


Comments: