C Language - Format Specifiers

 



#include <stdio.h>

#include <conio.h>

int main()

{


int a=6, b=4, c=20;



printf(" \a \\n the sum is %5d\n ", a+b+c);

printf("   the sum is %5d\n ", a/b*c);

printf("   the sum is %5d\n ", a+b-c);


return 0;



// in this program i did a format specifier job,constants, escape sequence and comments.


}


// ScreenShots:






Comments

Popular Posts