#include using namespace std; int main() { int a=0,b=0,c,d,e; while(1) { a++; d=0; b=0; cout << "Sample Input" << a << " :\n"; while(b<1 || b>99) cin >> b; for (e=0;e<=b;e++) { c=e/10; if (c==3 || e-c*10==3) d++; } cout << "Sample Output" << a << " :\n" << d << endl << endl; } }