The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
C file
By Guest on 24th January 2025 05:15:36 AM | Syntax: C | Views: 1



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. #include <stdio.h>
  2. int main()
  3. {
  4.  char ch = 'A'; char str[20] = "Computer";
  5.  float flt = 10.234; int no = 150; double dbl = 20.123456;
  6.  printf("Character is %c \n", ch);
  7.  printf("String is %s \n" , str);
  8.  printf("Float value is %f \n", flt);
  9.  printf("Integer value is %d\n" , no);
  10.  printf("Double value is %lf \n", dbl);
  11.  printf("Octal value is %o \n", no);
  12.  printf("Hexadecimal value is %x \n", no);
  13.  return 0;
  14. }



  • Recent Pastes

Upload your own Photos at PasteNet Photos


Free Packet LLC
For all your hosting needs!