Skip to content

Instantly share code, notes, and snippets.

@Levik
Created March 6, 2011 10:38
Show Gist options
  • Select an option

  • Save Levik/857191 to your computer and use it in GitHub Desktop.

Select an option

Save Levik/857191 to your computer and use it in GitHub Desktop.
lab1.1
#include <stdio.h>
#include <iostream>
#include <conio.h>
using namespace std;
void main()
{
int n;
cout<<"Enter n: ";
cin>>n;
int res=(n%10)*(n/10)-(n%10)/(n/10);
cout<<"Result: "<<res;
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment