Using scanf Function
Problem Statement
Write a program to scan a number using scanf function and print it on the screen by printf statement
#include<stdio.h>
int main()
{
int y;
printf("enter any number \n");
scanf("%d",&y);
printf("the value of y=%d \n",y);
return 0;
}
No comments:
Post a Comment