Thursday, December 12, 2013

Examples For Input And Output Through Programming .... Continued

Today lets look at how to read one or more variable in the same program.


#include<stdio.h>
void main()
{
int n;
float f;
printf("Enter An Integer And An Floating Number");
scanf("%d%f",&n,&f);
printf("The Entered Integer Is %d And Floating Number Is %f",n,f);

}