C Program : Printf() Example

 #include <stdio.h>

int main() { int integerVar = 42; float floatVar = 3.141592; char charVar = 'A'; printf("Hello, World!\n"); printf("Integer Variable: %d\n", integerVar); printf("Floating-Point Variable: %.2f\n", floatVar); printf("Character Variable: %c\n", charVar); printf("Sum of %d and %.2f is %.2f\n", integerVar, floatVar, integerVar + floatVar); return 0; }

Comments

Popular posts from this blog

Video Formats

Where video editing is used

File saving and folder management