Que- make a program for taking and giving input and output in one line for more than 1 variable?
#include<stdio.h>
using namespace std;
int main()
{
int a,b;
printf("enter two number \n");
scanf("%d%d",&a,&b);
printf("enter numbers are :- %d,%d",a,b);
return 0;
}
Result:-
Tags
C programming