top of page
Search

C Program to describe output for real numbers

#include<stdio.h>

void main()

{

float a=98.7654;

printf("%f\n",a);

printf("%7.4f\n",a);

printf("%-7.2f\n",a);

printf("-%7.2f\n",a);

printf("%11.4e\n",-a);

printf("%-10.2e\n",a);

printf("%e\n",a);

}

 
 
 

Recent Posts

See All

Commentaires


Post: Blog2_Post

©2020 by Fundamentals of computing. Proudly created with Wix.com

bottom of page