#include<stdio.h>
#include<math.h>
#include<string.h>
#include<conio.h>
int main()
{
//"Use of %C, %d, %e, %f, %s in printf
char ch='A'; // single quote is used for char
printf("The char enttered is %c",ch);
int i=1001;
printf("\n The integer enttered is %d",i);
double j=3454000;
printf("\n The integer enttered in scientific notation is %e",j);
float f=34.546;
printf("\n The float enttered is %f",f);
char s[] = "Welcome to codesplanet.blogspot.in"; // double quote is used for string
printf("\n The string entered is : %s",s);
getch();
return 0;
}
#include<math.h>
#include<string.h>
#include<conio.h>
int main()
{
//"Use of %C, %d, %e, %f, %s in printf
char ch='A'; // single quote is used for char
printf("The char enttered is %c",ch);
int i=1001;
printf("\n The integer enttered is %d",i);
double j=3454000;
printf("\n The integer enttered in scientific notation is %e",j);
float f=34.546;
printf("\n The float enttered is %f",f);
char s[] = "Welcome to codesplanet.blogspot.in"; // double quote is used for string
printf("\n The string entered is : %s",s);
getch();
return 0;
}
No comments:
Post a Comment