Ads Top

Program Using Variables in c

Program Using  Variables in c


#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
printf(“enter a");
scanf(“%d”,&a);
printf(“enter b");
scanf(“%d”,&b);
printf(“a= %d\n”, a);
printf(“b= %d\n”, b);
getch();

}


Output

enter a
8
enter b
9
a=8
b=9


No comments:

Touchfeeds. Powered by Blogger.