Lecture-3 [user input and output

#include <iostream>
using namespace std;
int main ()
{
    int a=12, b=10, z;
    float f=3.5;
    char c='A';
    double d=3.56789;
    cout<<a<<endl;
    cin>>a;
    z=a%b;
    cout<<a<<" "<<b<<" "<<f;
    return 0;
}




//Second Project Same  



#include <iostream>
using namespace std;
int main ()
{  
    int a, b, c;
    printf("Please Enter first Number\n");
    cin>>a;

    printf("Enter Second Number\n");
    cin>>b;

    printf("Your Sam is ");
   
    cout<<a+b;

   printf("\n");
    return 0;
}

Give Same Suggestion