Printf()-OutputCommand
Printf() command is for output in C. Its SYNTAX is:
- printf("string");
(String is any statement)
- printf("Data specifier",argument_list);
(Data specifers are %d, %f, %c etc)
PROGRAMS
1_#include<stdio.h>
main()
{
printf("I LOve PakIstan") ;
}
2_#include<stdio.h>
main()
{
int a=5;
printf("%d is a number",a);
}
3_
#include<stdio.h>
main()
{
int a=2;
float b=5.0;
char c='A';
printf("Value of a is =%d",a);
printf("value of b is=%f",b);
printf("Value of c is=%c",c);
}
3 Comments
Good for bignners
ReplyDeletegood work ...............................
ReplyDeletePAK JOBS ALERT NEWS
Dr.ahmad nice work
ReplyDeleteUSA LATEST NEWS