Write a program for taking and giving input and output for more than 1 variable in c

 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:-



Post a Comment

Previous Post Next Post