4. NEWSPAPER REPORT

Image result for c programming
Code:
  #include<stdio.h>
int main(){
  int a,b,c;
  char d=')';
  printf("Enter the number of people dead:\n");
  scanf("%d",&a);
  printf("Enter the number of people injured:\n");
  scanf("%d",&b);
  printf("Enter the number of people safe:\n");
  scanf("%d",&c);
  printf("TSUNAMI REPORT OF JAPAN\n");
  printf("The number of people\n");
  printf("1%cDead:%d",d,a);
  printf("\n2%cInjured:%d",d,b);
  printf("\n3%cSafe:%d",d,c);
  printf("\nPlease help the people who are suffering!!!");
  
  return 0;
}

No comments