Data in C

#include<stdio.h>
int main()
{
char str[20];
int i;
float b;
printf(" n Enter the value of str, i and b");
scanf("%s %d %f", str, &i, &b);
printf("%s %d %0.2f", str, i, b);
return 0;
}
/*Output:-
Abdul
5
5.5
Abdul 5 5.50
[Process completed - press Enter]*/

Comments

Popular posts from this blog

C++ Friend Function

Find Factor Of Any Number

Find Factorial Using Loop in C