MULTIPLY BY 5
Problem Description
Ram play a game with guna to tell if ram say number gun have to reply
the number multiplied by 5 value, for example if ram say 2 guna has to reply 10.
using structure concept implement it.
Input Method
Integer ranges from 1 to 999
Output Method
Value multiplied by 5
CODING ARENA
#include <stdio.h>
struct multiply
{
int a;
}s;
int main()
{
int b;
struct multiply s;
scanf("%d",&s.a);
b=s.a*5;
printf("%d",b);
return 0;
}
Test Case 1
Input (stdin)3
Expected Output
15
Test Case 2
Input (stdin)4
Expected Output
20
No comments:
Post a Comment