Tsunami Final Report

QUESTION

In Indonesia ,there was a very huge Tsunami. Millions and millions worth buildings and properties were destroyed. Many people lost their lives. Most of them were injured and few were safe. A news reporter arrives to the spot to take the current survey regarding the situation of the people alive , dead and injured. He wanted to publish it in the newspaper and ask the other countries to help the affected people. \n\nCan you please help him in this noble cause by writing a program to generate the newspaper report?\n\nINPUT FORMAT:\n\nInput consists of three integers corresponding to the number of people dead , injured and those who are still alive and safe.\n\nOUTPUT FORMAT:\n\nRefer sample input and output for formatting specifications.\n\n[All text in bold corresponds to input and the rest corresponds to output].

“TESTCASE_1”: “2000\n3000\n10000\n###—###SEPERATOR—###—\nDead:2000\nInjured:3000\nSafe:10000”, “TESTCASE_2”: “12000\n13000\n110000\n###—###SEPERATOR—###—\nDead:12000\nInjured:13000\nSafe:110000”, “TESTCASE_3”: “120001\n130001\n1100001\n###—###SEPERATOR—###—\nDead:120001\nInjured:130001\nSafe:1100001”, “TESTCASE_4”: “0\n###—###SEPERATOR—###—\n0”, “TESTCASE_5”: “0\n###—###SEPERATOR—###—\n0

ANSWER

#include<stdio.h>
int main()
{
 int dead,injured,safe;
  scanf("%d",&dead);
  scanf("%d",&injured);
  scanf("%d",&safe);
   printf("Dead:%d\n",dead);
   printf("Injured:%d\n",injured);
   printf("Safe:%d\n",safe);
  return 0;
}

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock