Basic Data Types

  • + 0 comments
    int main() {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT */   
        int a;
        long b;
        char c;
        float d;
        double e;
    		
    		// Take multiple input
        scanf("%d %ld %c %f %lf", &a, &b, &c, &d, &e);
        
    		// print output
    		// to make it more readable separate the a, b, c
        printf("%d\n%ld\n%c\n", a, b, c);
        printf("%.3f\n", d);
        printf("%.9lf\n", e);
        
        return 0;
    }