[ create a new paste ] login | about

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

C, pasted on Dec 3:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<stdio.h>
//tim so lon nhat trong 3 so a , b,c
int main () {
float a,b,c;
printf("nhap 3 so a,b,c :\n);
scanf("%f%f%f",&a,&b,&c);
float max=a;
if(b>max) {
max=b;
}
if(c>max) {
max=c;
}
}


Output:
1
2
3
4
5
In function 'main':
Line 5: error: missing terminating " character
Line 6: error: expected ')' before ';' token
Line 14: warning: passing argument 1 of 'printf' makes pointer from integer without a cast
Line 14: error: expected ';' before '}' token


Create a new paste based on this one


Comments: