View Code of Problem 69

#include<stdio.h>
#include <string.h>
void f(int x)
{
if(x<1)
printf("%d",x);
if(x>=1&&x<10)
printf("%d",x*2-1);
if(x>=10)
printf("%d",x*3-11);
}
void main()
{
int x,y;
scanf("%d",&x);
f(x);

}

Double click to view unformatted code.


Back to problem 69