{}
run-icon
main.c
#include <stdio.h> int main() { printf("Hello World!\n"); printf("-------------------------\n"); printf("The number is %d\n", 23); printf("some prime numbers are %d, %d, %d, %d\n", 2,3,5,7); printf("-----------------------\n"); printf("The value of pi is %f\n", 3.14); printf("Value of pi upto 2 decimal place %.0f\n", 3.14); printf("an integer %d and a float numer %f\n", 12, 5.4); printf("---------------------------\n"); printf("this is a character %c\n", 'a'); printf("----------------------------\n"); printf("calculate circumference %f\n", 2.0*3.14*32); printf("some complicated calculation %f\n", 2*5*3.14 - 15/23 - 51.0); return 0; }
Output