"Hello World!" in C | HackerRank - Samsus Salehin Sabbir

Header Ads

"Hello World!" in C | HackerRank


Problem Link : "Hello World!" in C

Solution :
      Develop by
Samsus Salehin Sabbir 


  1.  #include <stdio.h> 
  2. #include <string.h>
  3. #include <math.h>
  4. #include <stdlib.h>

  5. int main() 
  6. {
  7.     // declearation
  8.     char s[100]; 
  9.     //scanf("%[^\n]%*c", &s); // for better option 
  10.     fgets(s,100,stdin);
  11.     printf("Hello, World!\n");
  12.     printf("%s",s);
  13.     return 0;
  14. }

No comments

Powered by Blogger.