Scroll To Top
News Trending
Related Posts Plugin for WordPress, Blogger...
Related Posts Plugin for WordPress, Blogger...
Related Posts Plugin for WordPress, Blogger...

C program to take input and print the value of a Int And Float.


In this program you will learn about to take input to the variables and print their values. The values are depends on the input .

#include<stdio.h>
#include<conio.h>

void main()
{
int a;
float c;
clrscr();                                            //to clear the screen.
printf("Enter the value of int\n");   //\n is used for new line
scanf("%d",&a);
printf("\na = %d",a);                      //& is used to store the value at the location of a, %d for int.
printf("\n\nEnter the value of float\n");
scanf("%f",&c);
printf("\nc = %f",c);
getch();
}


Share This:

Labels:

No Comment to " C program to take input and print the value of a Int And Float. "