Problem Description
Write a program to read the address of a user. Display the result by breaking it into multiple lines
InputandOutputFormat:
Refer sample input and output for formatting specification.
All float values are displayed correct to 2 decimal places.
All text in bold corresponds to input and the rest corresponds to output
CODING
ARENA::
#include
<stdio.h>
int
main()
{
int a,b;
char c[20];
scanf("%d",&a);
scanf("%s",c);
scanf("%d",&b);
printf("Address");
printf("\nHouse Number:%d",a);
printf("\nArea:%s",c);
printf("\nPin Code:%d",b);
return 0;
}
Test Case 1
Input (stdin)
3489
SRMChennai
603203
Expected Output
Address
House Number:3489
Area:SRMChennai
Pin Code:603203
Test Case 2
Input (stdin)
1234
SRMDELHI
123456
Expected
Output
Address
House Number:1234
Area:SRMDELHI
Pin Code:123456
IF YOU HAVE ANY DOUBTS PLEASE COMMENT .WE WILL REPLY
ReplyDelete