Pig Latin
Time Limit: 1 sec
The Problem
English is translated into Pig Latin by taking the first letter of every word, moving it to the end of the word and adding ‘ay’. “The quick brown fox” becomes “Hetay uickqay rownbay oxfay”.
You have to write a program, which will print the Pig Latin sentence which equivalent english sentence “Intra University Programming Contest”.
For your convenience, we are providing one sample program in C program which prints “Hetay uickqay rownbay oxfay” which is the equivalent of “The quick brown fox”. You just have to change the code to your requirement.
#include "stdio.h"
int main(){
printf(“Hetay uickqay rownbay oxfay”);
return 0;
}
The Output
Convert “Intra University Programming Contest” to Pig Latin and just print it.
Sample Output
Hetay uickqay rownbay oxfay
Note: you can’t output anything other than the required output, and the line must end with a newline (‘\n’). Take special care about spelling and case. If you alter any of those, you may not get accepted.
Intra University Programming Contest - Winter 2019 [BGC Trust University Bangladesh]
Problem Setter: Shahin ShamS