Question 1

Correct the following source codes and arrange them in a readable way.

#include <stdio.h>
int main (void) {Printf(“How are you? \n”); printf(“Not bad”\n):
return O;
#include <stdio.h>

int main (void) {
    printf("How are you? \n"); 
    printf("Not bad\n");
    
    return 0;
}

Download Q1.c

Question 2

Write a source code, which is intended to output the following tab separated numbers.

1.2 3.4 0.5
3.5 6.0 -10
#include <stdio.h>

int main (void) {
    printf("%.1f\t%.1f\t%.1f\n", 1.2, 3.4, 0.5);
    printf("%.1f\t%.1f\t%d\n", 3.5, 6.0, -10);

    return 0;
}

Download Q2.c