Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

regular expressions in c programing, Exercises of C programming

it is very useful for practicing c programming for students

Typology: Exercises

2018/2019

Uploaded on 10/28/2019

jeeshitha
jeeshitha 🇮🇳

1 document

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
#include <stdio.h>
int main()
{
int n,d=1,i;
int t;
scanf("%d",&n);
t=n%1000;
printf("%d\n",t);
for(i=1;i<=10000 & d!=0;i=i*100)
{
d=(n/(1000*i))%100;
if(d==0)
break;
printf("%d\n",d);
}
return 0;
}

Partial preview of the text

Download regular expressions in c programing and more Exercises C programming in PDF only on Docsity!

#include <stdio.h> int main() { int n,d=1,i; int t; scanf("%d",&n); t=n%1000; printf("%d\n",t); for(i=1;i<=10000 & d!=0;i=i100) { d=(n/(1000i))%100; if(d==0) break; printf("%d\n",d); } return 0; }