Computer Science, asked by savithri141287, 18 days ago

Complete the following method that takes a String parameter that is a date in the European form. For example the parameter might contain "30-11-2003" which would be November 30, 2003 in European form. The method returns a String with the same date in American form. For example, given the parameter in the example above, the method should return "11/30/2003".

Answers

Answered by suhaibansari2344
0

Answer:

I hope it help you please mark me in brainliest

Attachments:
Answered by rajdheerajcreddy
0

Answer:

#include <stdio.h>

#include <stdlib.h>

void main()

{

   int a,b,c;

   

   printf("Enter the date in European format: ");

   scanf("%d-%d-%d",&a,&b,&c);

   

   printf("Date in American format is: %d/%d/%d",b,a,c);

}

Similar questions