[ create a new paste ] login | about

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

C, pasted on Feb 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 #include <iostream>
    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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Line 20: error: iostream: No such file or directory
Line 3: error: expected identifier or '(' before '{' token
Line 5: error: stray '\342' in program
Line 5: error: stray '\200' in program
Line 5: error: stray '\234' in program
Line 5: error: stray '\342' in program
Line 5: error: stray '\200' in program
Line 5: error: stray '\235' in program
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: stray '\342' in program
Line 12: error: stray '\200' in program
Line 12: error: stray '\235' in program


Create a new paste based on this one


Comments: